Struct everscale_types::models::block::BlockInfo
source · pub struct BlockInfo<C: CellFamily> {Show 22 fields
pub version: u32,
pub after_merge: bool,
pub before_split: bool,
pub after_split: bool,
pub want_split: bool,
pub want_merge: bool,
pub key_block: bool,
pub flags: u8,
pub seqno: u32,
pub vert_seqno: u32,
pub shard: ShardIdent,
pub gen_utime: u32,
pub start_lt: u64,
pub end_lt: u64,
pub gen_validator_list_hash_short: u32,
pub gen_catchain_seqno: u32,
pub min_ref_mc_seqno: u32,
pub prev_key_block_seqno: u32,
pub gen_software: GlobalVersion,
pub master_ref: Option<Lazy<C, BlockRef>>,
pub prev_ref: CellContainer<C>,
pub prev_vert_ref: Option<Lazy<C, BlockRef>>,
}Expand description
Block info.
Fields§
§version: u32Block model version.
after_merge: boolWhether this block was produced after the shards were merged.
before_split: boolWhether this block was produced before the shards split.
after_split: boolWhether this block was produced after the shards split.
want_split: boolHint that the shard with this block should split.
want_merge: boolHint that the shard with this block should merge.
key_block: boolWhether this block is a key block.
flags: u8Block flags (currently only bit 1 is used, for gen_software)
seqno: u32Block sequence number.
vert_seqno: u32Block vertical sequence number.
shard: ShardIdentShard id where this block was produced.
gen_utime: u32Unix timestamp when the block was created.
start_lt: u64Logical time range start.
end_lt: u64Logical time range end.
gen_validator_list_hash_short: u32Last 4 bytes of the hash of the validator list.
gen_catchain_seqno: u32Seqno of the catchain session where this block was produced.
min_ref_mc_seqno: u32Minimal referenced seqno of the masterchain block.
prev_key_block_seqno: u32Previous key block seqno.
gen_software: GlobalVersionThe version and capabilities of the software that created this block.
master_ref: Option<Lazy<C, BlockRef>>Reference to the masterchain block which was used during the creation of this block.
prev_ref: CellContainer<C>Reference to the previous block (or blocks).
prev_vert_ref: Option<Lazy<C, BlockRef>>Optional reference to the previous vertical block.
Implementations§
source§impl<C: CellFamily> BlockInfo<C>
impl<C: CellFamily> BlockInfo<C>
sourcepub fn load_prev_ref(&self) -> Option<PrevBlockRef>
pub fn load_prev_ref(&self) -> Option<PrevBlockRef>
Tries to load a reference to the previous block (or blocks).