pub struct McStateExtra {
pub shards: ShardHashes,
pub config: BlockchainConfig,
pub validator_info: ValidatorInfo,
pub prev_blocks: AugDict<u32, KeyMaxLt, KeyBlockRef>,
pub after_key_block: bool,
pub last_key_block: Option<BlockRef>,
pub block_create_stats: Option<Dict<HashBytes, CreatorStats>>,
pub global_balance: CurrencyCollection,
pub copyleft_rewards: Dict<HashBytes, Tokens>,
}Expand description
Additional content for masterchain state.
§TLB scheme
copyleft_rewards#_ counters:(HashmapE 256 Grams) = CopyleftRewards;
masterchain_state_extra#cc26
shard_hashes:ShardHashes
config:ConfigParams
^[
flags:(## 16) { flags <= 7 }
validator_info:ValidatorInfo
prev_blocks:OldMcBlocksInfo
after_key_block:Bool
last_key_block:(Maybe ExtBlkRef)
block_create_stats:(flags . 0)?BlockCreateStats
copyleft_rewards:(flags . 1)?CopyleftRewards
consensus_info:(flags . 2)?ConsensusInfo
]
global_balance:CurrencyCollection
= McStateExtra;Fields§
§shards: ShardHashesA tree of the most recent descriptions for all currently existing shards for all workchains except the masterchain.
config: BlockchainConfigThe most recent blockchain config (if the block is a key block).
validator_info: ValidatorInfoBrief validator info.
prev_blocks: AugDict<u32, KeyMaxLt, KeyBlockRef>A dictionary with previous masterchain blocks.
after_key_block: boolWhether this state was produced after the key block.
last_key_block: Option<BlockRef>Optional reference to the latest known key block.
block_create_stats: Option<Dict<HashBytes, CreatorStats>>Block creation stats for validators from the current set.
global_balance: CurrencyCollectionTotal balance of all accounts.
copyleft_rewards: Dict<HashBytes, Tokens>Optional copyleft rewards.
Trait Implementations§
Source§impl Clone for McStateExtra
impl Clone for McStateExtra
Source§fn clone(&self) -> McStateExtra
fn clone(&self) -> McStateExtra
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McStateExtra
impl Debug for McStateExtra
Source§impl<'a> Load<'a> for McStateExtra
impl<'a> Load<'a> for McStateExtra
Source§impl Store for McStateExtra
impl Store for McStateExtra
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &mut dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &mut dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl Freeze for McStateExtra
impl !RefUnwindSafe for McStateExtra
impl Send for McStateExtra
impl Sync for McStateExtra
impl Unpin for McStateExtra
impl !UnwindSafe for McStateExtra
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
Mutably borrows from an owned value. Read more