Struct snapps_txn_reference_impl::condition::ProtocolStateCondition [−][src]
pub struct ProtocolStateCondition {
pub snarked_ledger_hash: OrIgnore<Hash>,
pub snarked_next_available_token: OrIgnore<ClosedInterval<TokenID>>,
pub timestamp: OrIgnore<ClosedInterval<u64>>,
pub blockchain_length: OrIgnore<ClosedInterval<u32>>,
pub min_window_density: OrIgnore<ClosedInterval<u32>>,
pub total_currency: OrIgnore<ClosedInterval<u64>>,
pub global_slot_since_hard_fork: OrIgnore<ClosedInterval<u32>>,
pub global_slot_since_genesis: OrIgnore<ClosedInterval<u32>>,
pub staking_epoch_data: EpochDataCondition,
pub next_epoch_data: EpochDataCondition,
}
Expand description
Condition on the Mina protocol state.
Fields
snarked_ledger_hash: OrIgnore<Hash>
Condition on the most-recently-proved ledger hash.
snarked_next_available_token: OrIgnore<ClosedInterval<TokenID>>
Condition on the most-recently-proved unused token ID.
timestamp: OrIgnore<ClosedInterval<u64>>
Condition on the timestamp of the block producer’s best known block.
blockchain_length: OrIgnore<ClosedInterval<u32>>
Condition on the number of blocks in the block producer’s current chain.
min_window_density: OrIgnore<ClosedInterval<u32>>
Condition on the ‘minimum window density’. This parameter is used to quantify chain health, and a more detailed description of its behavior can be found in the specification of the consensus mechanism.
total_currency: OrIgnore<ClosedInterval<u64>>
Condition in the total available currency in the ledger.
global_slot_since_hard_fork: OrIgnore<ClosedInterval<u32>>
The number of ‘slots’ after the most recent hard-fork at which the block producer’s best known block was produced.
global_slot_since_genesis: OrIgnore<ClosedInterval<u32>>
The number of ‘slots’ after genesis at which the block producer’s best known block was produced.
staking_epoch_data: EpochDataCondition
Condition on the current epoch’s data, used for staking.
next_epoch_data: EpochDataCondition
Condition on the data for the next epoch, which will be used for staking, but which may not yet be finalized.