Enum lightning_block_sync::BlockData
source · pub enum BlockData {
FullBlock(Block),
HeaderOnly(BlockHeader),
}
Expand description
A block including either all its transactions or only the block header.
BlockSource
may be implemented to either always return full blocks or, in the case of
compact block filters (BIP 157/158), return header-only blocks when no pertinent transactions
match. See chain::Filter
for details on how to notify a source of such transactions.
Variants§
FullBlock(Block)
A block containing all its transactions.
HeaderOnly(BlockHeader)
A block header for when the block does not contain any pertinent transactions.