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 size of the block

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.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.