Struct lightning_block_sync::BlockHeaderData [−][src]
pub struct BlockHeaderData {
pub header: BlockHeader,
pub height: u32,
pub chainwork: Uint256,
}
Expand description
A block header and some associated data. This information should be available from most block sources (and, notably, is available in Bitcoin Core’s RPC and REST interfaces).
Fields
header: BlockHeader
The block header itself.
height: u32
The block height where the genesis block has height 0.
chainwork: Uint256
The total chain work in expected number of double-SHA256 hashes required to build a chain of equivalent weight.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type T = ValidatedBlockHeader
type T = ValidatedBlockHeader
The validated data wrapper which can be dereferenced to obtain the validated data.
Auto Trait Implementations
impl RefUnwindSafe for BlockHeaderData
impl Send for BlockHeaderData
impl Sync for BlockHeaderData
impl Unpin for BlockHeaderData
impl UnwindSafe for BlockHeaderData
Blanket Implementations
Mutably borrows from an owned value. Read more