Struct near_chain::types::BlockHeaderInfo [−][src]
pub struct BlockHeaderInfo {
pub hash: CryptoHash,
pub prev_hash: CryptoHash,
pub height: BlockHeight,
pub random_value: CryptoHash,
pub last_finalized_height: BlockHeight,
pub last_finalized_block_hash: CryptoHash,
pub proposals: Vec<ValidatorStake>,
pub slashed_validators: Vec<SlashedValidator>,
pub chunk_mask: Vec<bool>,
pub total_supply: Balance,
pub latest_protocol_version: ProtocolVersion,
pub timestamp_nanosec: u64,
}Expand description
Compressed information about block. Useful for epoch manager.
Fields
hash: CryptoHashprev_hash: CryptoHashheight: BlockHeightrandom_value: CryptoHashlast_finalized_height: BlockHeightlast_finalized_block_hash: CryptoHashproposals: Vec<ValidatorStake>slashed_validators: Vec<SlashedValidator>chunk_mask: Vec<bool>total_supply: Balancelatest_protocol_version: ProtocolVersiontimestamp_nanosec: u64Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockHeaderInfo
impl Send for BlockHeaderInfo
impl Sync for BlockHeaderInfo
impl Unpin for BlockHeaderInfo
impl UnwindSafe for BlockHeaderInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more