Skip to content
Snippets Groups Projects
Commit 4f632887 authored by Kai's avatar Kai Committed by GitHub
Browse files

only register MaxCandidates-1 candidates initially (#1714)

parent f00417b9
No related merge requests found
......@@ -147,7 +147,7 @@ benchmarks! {
// worse case is when we have all the max-candidate slots filled except one, and we fill that
// one.
register_as_candidate {
let c in 1 .. T::MaxCandidates::get();
let c in 1 .. T::MaxCandidates::get() - 1;
<CandidacyBond<T>>::put(T::Currency::minimum_balance());
<DesiredCandidates<T>>::put(c + 1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment