pub struct ShardDescription {Show 18 fields
pub seqno: u32,
pub reg_mc_seqno: u32,
pub start_lt: u64,
pub end_lt: u64,
pub root_hash: HashBytes,
pub file_hash: HashBytes,
pub before_split: bool,
pub before_merge: bool,
pub want_split: bool,
pub want_merge: bool,
pub nx_cc_updated: bool,
pub next_catchain_seqno: u32,
pub next_validator_shard: u64,
pub min_ref_mc_seqno: u32,
pub gen_utime: u32,
pub split_merge_at: Option<FutureSplitMerge>,
pub fees_collected: CurrencyCollection,
pub funds_created: CurrencyCollection,
}Expand description
Description of the most recent state of the shard.
Fields§
§seqno: u32Sequence number of the latest block in the shard.
reg_mc_seqno: u32The latest known masterchain block at the time of shard generation.
start_lt: u64The beginning of the logical time range since the last MC block.
end_lt: u64The end of the logical time range since the last MC block.
root_hash: HashBytesRepresentation hash of the root cell of the latest block in the shard.
file_hash: HashBytesHash of the BOC encoded root cell of the latest block in the shard.
before_split: boolWhether this shard splits in the next block.
before_merge: boolWhether this shard merges in the next block.
want_split: boolHint that this shard should split.
want_merge: boolHint that this shard should merge.
nx_cc_updated: boolWhether the value of catchain seqno has been incremented and will it also be incremented in the next block.
next_catchain_seqno: u32Catchain seqno in the next block.
next_validator_shard: u64Duplicates the shard ident for the latest block in this shard.
min_ref_mc_seqno: u32Minimal referenced seqno of the masterchain block.
gen_utime: u32Unix timestamp when the latest block in this shard was created.
split_merge_at: Option<FutureSplitMerge>Planned split/merge time window if present.
fees_collected: CurrencyCollectionAmount of fees collected in this shard since the last masterchain block.
funds_created: CurrencyCollectionAmount of funds created in this shard since the last masterchain block.
Implementations§
Source§impl ShardDescription
impl ShardDescription
Sourcepub fn as_block_id(&self, shard: ShardIdent) -> BlockId
pub fn as_block_id(&self, shard: ShardIdent) -> BlockId
Converts a ShardDescription to a BlockId given a shard identifier.
Trait Implementations§
Source§impl Clone for ShardDescription
impl Clone for ShardDescription
Source§fn clone(&self) -> ShardDescription
fn clone(&self) -> ShardDescription
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShardDescription
impl Debug for ShardDescription
Source§impl<'a> Load<'a> for ShardDescription
impl<'a> Load<'a> for ShardDescription
Source§impl PartialEq for ShardDescription
impl PartialEq for ShardDescription
Source§impl Serialize for ShardDescription
impl Serialize for ShardDescription
Source§impl Store for ShardDescription
impl Store for ShardDescription
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
impl Eq for ShardDescription
impl StructuralPartialEq for ShardDescription
Auto Trait Implementations§
impl Freeze for ShardDescription
impl !RefUnwindSafe for ShardDescription
impl Send for ShardDescription
impl Sync for ShardDescription
impl Unpin for ShardDescription
impl !UnwindSafe for ShardDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.