Skip to content

Staking AH Client: bound OutgoingValidatorSet #10144

@kianenigma

Description

@kianenigma

Create a proper bound for this type as having unbounded storage items in a parachain is frowned upon.

/// A validator set that is outgoing, and should be sent.
///
/// This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
/// or the second value reaches zero, at which point we drop it.
#[pallet::storage]
// TODO: for now we know this ValidatorSetReport is at most validator-count * 32, and we don't
// need its MEL critically.
#[pallet::unbounded]
pub type OutgoingValidatorSet<T: Config> =
StorageValue<_, (ValidatorSetReport<T::AccountId>, u32), OptionQuery>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions