pub struct UpdateValidatorSet {
pub added: Vec<Pubkey>,
pub removed: Vec<Pubkey>,
pub version: u64,
pub admin_sigs: Vec<AdminSignature>,
pub meta: ActionMeta,
}Expand description
Delta-form admin-signed validator-set mutation.
Adds already in the set and removes not in the set are no-ops. A pubkey
appearing in both added and removed rejects the tx. version must
equal the current ValidatorSet version + 1.
Threshold-signed by ADMIN_THRESHOLD of ADMIN_PUBKEYS. Verification
and activation live in bulk_consensus_proto::admin_txn.
Fields§
§added: Vec<Pubkey>§removed: Vec<Pubkey>§version: u64§admin_sigs: Vec<AdminSignature>§meta: ActionMetaTrait Implementations§
Source§impl Clone for UpdateValidatorSet
impl Clone for UpdateValidatorSet
Source§fn clone(&self) -> UpdateValidatorSet
fn clone(&self) -> UpdateValidatorSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateValidatorSet
impl Debug for UpdateValidatorSet
Source§impl<'de> Deserialize<'de> for UpdateValidatorSet
impl<'de> Deserialize<'de> for UpdateValidatorSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateValidatorSet
impl RefUnwindSafe for UpdateValidatorSet
impl Send for UpdateValidatorSet
impl Sync for UpdateValidatorSet
impl Unpin for UpdateValidatorSet
impl UnsafeUnpin for UpdateValidatorSet
impl UnwindSafe for UpdateValidatorSet
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