penumbra_stake::component::stake

Trait ConsensusIndexWrite

Source
pub trait ConsensusIndexWrite: StateWrite {
    // Provided methods
    fn add_consensus_set_index(&mut self, identity_key: &IdentityKey) { ... }
    fn remove_consensus_set_index(&mut self, identity_key: &IdentityKey) { ... }
}
Available on crate feature component only.

Provided Methods§

Source

fn add_consensus_set_index(&mut self, identity_key: &IdentityKey)

Add a validator identity to the consensus set index. The consensus set index includes any validator that has a delegation pool that is greater than StakeParameters::min_validator_stake.

Source

fn remove_consensus_set_index(&mut self, identity_key: &IdentityKey)

Remove a validator identity from the consensus set index. The consensus set index includes any validator that has a delegation pool that is greater than StakeParameters::min_validator_stake.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§