Skip to content

Commit 110b445

Browse files
authored
Set testnet and local CollatorMinCandidates to 0, leave mainnet at 1 (#1943)
# Goal The goal of this PR is to allow testnet and local to have zero collator candidates Closes #1942 # Discussion - Note that this count does NOT include invulnerables
1 parent ca89096 commit 110b445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/common/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ pub type AuraMaxAuthorities = ConstU32<100_000>;
254254
// --- Collator Selection Pallet ---
255255
// Values for each runtime environment are independently configurable.
256256
// Example CollatorMaxInvulnerables are 16 in production(mainnet),
257-
// 5 in rococo testnet and 5 in rococo local
257+
// 5 in testnet and 5 in local
258258

259259
pub type CollatorMaxCandidates = ConstU32<50>;
260-
pub type CollatorMinCandidates = ConstU32<1>;
260+
pub type CollatorMinCandidates = ConstU32<{ prod_or_testnet_or_local!(1, 0, 0) }>;
261261
pub type CollatorMaxInvulnerables = ConstU32<{ prod_or_testnet_or_local!(16, 5, 5) }>;
262262
pub type CollatorKickThreshold =
263263
ConstU32<{ prod_or_testnet_or_local!(6 * HOURS, 6 * HOURS, 6 * HOURS) }>;

0 commit comments

Comments
 (0)