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>

Returns the block hash.

check if merkle root of header matches merkle root of the transaction list

Checks if witness commitment in coinbase matches the transaction list.

Computes the transaction merkle root.

👎 Deprecated since 0.28.0:

Please use block::compute_merkle_root instead.

Calculate the transaction merkle root.

Computes the merkle root of transactions hashed for witness.

👎 Deprecated since 0.28.0:

Please use block::size instead.

Returns the size of the block.

Returns the size of the block.

size == size of header + size of encoded transaction count + total size of transactions.

👎 Deprecated since 0.28.0:

Please use transaction::strippedsize instead.

Returns the strippedsize of the block.

Returns the strippedsize of the block.

👎 Deprecated since 0.28.0:

Please use transaction::weight instead.

Returns the weight of the block.

Returns the weight of the block.

Returns the coinbase transaction, if one is present.

Returns the block height, as encoded in the coinbase transaction according to BIP34.

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.