Introduce `cancel_proposal` to rid us of those pesky proposals (#7111)
* Introduce `cancel_proposal` Also fix proposal weight. * Support proposal cancellation from runtime. * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fix benchmarks * fix benchmark * whitelisted caller weights * fix build * Fixes * Fixes * Fixes * Fixes * Update frame/democracy/src/lib.rs Co-authored-by:Shawn Tabrizi <shawntabrizi@gmail.com> * Fixes * Fixes * Fixes * Fixes * Fixes * doc updates * new weights Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
Showing
- substrate/bin/node/runtime/src/lib.rs 10 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/bin/node/runtime/src/weights/pallet_democracy.rs 62 additions, 45 deletionssubstrate/bin/node/runtime/src/weights/pallet_democracy.rs
- substrate/frame/benchmarking/src/utils.rs 9 additions, 0 deletionssubstrate/frame/benchmarking/src/utils.rs
- substrate/frame/democracy/src/benchmarking.rs 65 additions, 9 deletionssubstrate/frame/democracy/src/benchmarking.rs
- substrate/frame/democracy/src/default_weight.rs 60 additions, 47 deletionssubstrate/frame/democracy/src/default_weight.rs
- substrate/frame/democracy/src/lib.rs 130 additions, 110 deletionssubstrate/frame/democracy/src/lib.rs
- substrate/frame/democracy/src/tests.rs 6 additions, 0 deletionssubstrate/frame/democracy/src/tests.rs
- substrate/frame/democracy/src/tests/external_proposing.rs 26 additions, 0 deletionssubstrate/frame/democracy/src/tests/external_proposing.rs
- substrate/frame/democracy/src/tests/public_proposals.rs 39 additions, 0 deletionssubstrate/frame/democracy/src/tests/public_proposals.rs
- substrate/frame/staking/src/benchmarking.rs 16 additions, 24 deletionssubstrate/frame/staking/src/benchmarking.rs
Please register or sign in to comment