Custom Codec Implenetation for NPoS Election (#6720)
* Fancy compact encode/decode impl for compact solution * Make it optional * Remove extra file * Update primitives/npos-elections/compact/src/lib.rs Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> * Final fixes. Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com>
Showing
- substrate/frame/staking/src/lib.rs 17 additions, 18 deletionssubstrate/frame/staking/src/lib.rs
- substrate/primitives/arithmetic/fuzzer/src/per_thing_rational.rs 0 additions, 1 deletion...te/primitives/arithmetic/fuzzer/src/per_thing_rational.rs
- substrate/primitives/npos-elections/compact/src/assignment.rs 35 additions, 47 deletions...trate/primitives/npos-elections/compact/src/assignment.rs
- substrate/primitives/npos-elections/compact/src/codec.rs 203 additions, 0 deletionssubstrate/primitives/npos-elections/compact/src/codec.rs
- substrate/primitives/npos-elections/compact/src/lib.rs 145 additions, 92 deletionssubstrate/primitives/npos-elections/compact/src/lib.rs
- substrate/primitives/npos-elections/compact/src/staked.rs 0 additions, 212 deletionssubstrate/primitives/npos-elections/compact/src/staked.rs
- substrate/primitives/npos-elections/src/lib.rs 15 additions, 1 deletionsubstrate/primitives/npos-elections/src/lib.rs
- substrate/primitives/npos-elections/src/tests.rs 112 additions, 247 deletionssubstrate/primitives/npos-elections/src/tests.rs
Please register or sign in to comment