Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f5b1860

Browse files
authored
only register MaxCandidates-1 candidates initially (#1714)
1 parent 7c8a9ff commit f5b1860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/collator-selection/src/benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ benchmarks! {
147147
// worse case is when we have all the max-candidate slots filled except one, and we fill that
148148
// one.
149149
register_as_candidate {
150-
let c in 1 .. T::MaxCandidates::get();
150+
let c in 1 .. T::MaxCandidates::get() - 1;
151151

152152
<CandidacyBond<T>>::put(T::Currency::minimum_balance());
153153
<DesiredCandidates<T>>::put(c + 1);

0 commit comments

Comments
 (0)