Alliance pallet: add force_set_members instead of init_members function (#11997)
* Alliance pallet: add force_set_members instead of init_members function * benchmark with witness data * remove invalid limit for clear * Apply suggestions from code review Co-authored-by:joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Revert "remove invalid limit for clear" This reverts commit dba54e3071b63bfea908087aef213f4640e3ccbf. * compile constructor only for test * Update comments for force_set_members Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance * benchmark - founders count range * Revert "benchmark - founders count range" This reverts commit aad16796f8dfed48079fb7f587b8f5b59382cda6. * witness members count instead votable members count * update the doc * use decode_len for witness data checks * change witness data member count to voting member count; update clear limits * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance * merge master * fixes after merge master * revert to cb3e63 * disband alliance and return deposits * revert debug changes * weights * update docs * update test comments * Apply Joe suggestions from code review Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * rename event from AllianceDisband to AllianceDisbanded * ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: command-bot <>
Showing
- substrate/bin/node/runtime/src/impls.rs 11 additions, 1 deletionsubstrate/bin/node/runtime/src/impls.rs
- substrate/frame/alliance/README.md 1 addition, 1 deletionsubstrate/frame/alliance/README.md
- substrate/frame/alliance/src/benchmarking.rs 162 additions, 12 deletionssubstrate/frame/alliance/src/benchmarking.rs
- substrate/frame/alliance/src/lib.rs 133 additions, 21 deletionssubstrate/frame/alliance/src/lib.rs
- substrate/frame/alliance/src/mock.rs 50 additions, 6 deletionssubstrate/frame/alliance/src/mock.rs
- substrate/frame/alliance/src/tests.rs 163 additions, 20 deletionssubstrate/frame/alliance/src/tests.rs
- substrate/frame/alliance/src/types.rs 31 additions, 0 deletionssubstrate/frame/alliance/src/types.rs
- substrate/frame/alliance/src/weights.rs 160 additions, 120 deletionssubstrate/frame/alliance/src/weights.rs
Please register or sign in to comment