Adds max backers per winner bounds check in the phragmen implementation (#6482)
Showing
- substrate/frame/election-provider-multi-phase/src/mock.rs 12 additions, 4 deletionssubstrate/frame/election-provider-multi-phase/src/mock.rs
- substrate/frame/election-provider-multi-phase/src/unsigned.rs 94 additions, 1 deletion...trate/frame/election-provider-multi-phase/src/unsigned.rs
- substrate/frame/election-provider-support/src/lib.rs 15 additions, 5 deletionssubstrate/frame/election-provider-support/src/lib.rs
- substrate/frame/election-provider-support/src/onchain.rs 3 additions, 2 deletionssubstrate/frame/election-provider-support/src/onchain.rs
- substrate/primitives/npos-elections/src/lib.rs 9 additions, 2 deletionssubstrate/primitives/npos-elections/src/lib.rs
- substrate/primitives/npos-elections/src/mock.rs 2 additions, 0 deletionssubstrate/primitives/npos-elections/src/mock.rs
- substrate/primitives/npos-elections/src/phragmen.rs 24 additions, 4 deletionssubstrate/primitives/npos-elections/src/phragmen.rs
- substrate/primitives/npos-elections/src/pjr.rs 6 additions, 0 deletionssubstrate/primitives/npos-elections/src/pjr.rs
- substrate/primitives/npos-elections/src/tests.rs 67 additions, 13 deletionssubstrate/primitives/npos-elections/src/tests.rs