Struct lightning_block_sync::poll::ValidatedBlock [−][src]
pub struct ValidatedBlock { /* fields omitted */ }
Expand description
A block with validated data against its transaction list and corresponding block hash.
Methods from Deref<Target = Block>
Return the block hash.
check if merkle root of header matches merkle root of the transaction list
check if witness commitment in coinbase is matching the transaction list
Calculate the transaction merkle root.
Merkle root of transactions hashed for witness
Get the weight of the block
Get the coinbase transaction, if one is present.
Get the block height as encoded into the coinbase according to BIP34. Returns None if not present.