BlockValidation

Trait BlockValidation 

Source
pub trait BlockValidation:
    Validation
    + Sync
    + Send
    + Sized
    + Unpin {
    const IS_CHECKED: bool;
}
Available on crate feature alloc only.
Expand description

Marker for whether or not a block has been validated.

We define valid as:

  • The Merkle root of the header matches Merkle root of the transaction list.
  • The witness commitment in coinbase matches the transaction list.

See bitcoin::block::BlockUncheckedExt::validate().

Required Associated Constants§

Source

const IS_CHECKED: bool

Indicates whether this Validation is Checked or not.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§