Skip to content

Commit

Permalink
Add pallet constants for pallet-collator-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Moliholy committed Jan 17, 2025
1 parent 5cd9e4a commit 4c292db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cumulus/pallets/collator-selection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,27 @@ pub mod pallet {
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>;

/// Account Identifier from which the internal Pot is generated.
#[pallet::constant]
type PotId: Get<PalletId>;

/// Maximum number of candidates that we should have.
///
/// This does not take into account the invulnerables.
#[pallet::constant]
type MaxCandidates: Get<u32>;

/// Minimum number eligible collators. Should always be greater than zero. This includes
/// Invulnerable collators. This ensures that there will always be one collator who can
/// produce a block.
#[pallet::constant]
type MinEligibleCollators: Get<u32>;

/// Maximum number of invulnerables.
#[pallet::constant]
type MaxInvulnerables: Get<u32>;

// Will be kicked if block is not produced in threshold.
#[pallet::constant]
type KickThreshold: Get<BlockNumberFor<Self>>;

/// A stable ID for a validator.
Expand Down

0 comments on commit 4c292db

Please sign in to comment.