pub struct ValidatedBlock { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.