Only maintain at most 1 `UnlockChunk` per era (#10670)
* Only maintain at most 1 `UnlockChunk` per era * Bound `unlocking` * Run cargo +nightly-2021-10-29 fmt * Make benchmarks stuff compile * Update frame/staking/src/lib.rs Co-authored-by:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Remove DerefMut; Implement neccesary methods directly * Doc comments for new BoundedVec methods * Fix benchmarks * wip bonded_vec macro * Correct rust doc * Apply suggestions from code review Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update staking::Config impls * Add MaxUnlockingChunks to more places * Use defensive saturating add * FMT Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/bin/node/runtime/src/lib.rs 1 addition, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/babe/src/mock.rs 1 addition, 0 deletionssubstrate/frame/babe/src/mock.rs
- substrate/frame/grandpa/src/mock.rs 1 addition, 0 deletionssubstrate/frame/grandpa/src/mock.rs
- substrate/frame/offences/benchmarking/src/mock.rs 1 addition, 0 deletionssubstrate/frame/offences/benchmarking/src/mock.rs
- substrate/frame/session/benchmarking/src/mock.rs 1 addition, 0 deletionssubstrate/frame/session/benchmarking/src/mock.rs
- substrate/frame/staking/src/benchmarking.rs 5 additions, 5 deletionssubstrate/frame/staking/src/benchmarking.rs
- substrate/frame/staking/src/lib.rs 16 additions, 6 deletionssubstrate/frame/staking/src/lib.rs
- substrate/frame/staking/src/mock.rs 1 addition, 0 deletionssubstrate/frame/staking/src/mock.rs
- substrate/frame/staking/src/pallet/impls.rs 4 additions, 4 deletionssubstrate/frame/staking/src/pallet/impls.rs
- substrate/frame/staking/src/pallet/mod.rs 29 additions, 11 deletionssubstrate/frame/staking/src/pallet/mod.rs
- substrate/frame/staking/src/tests.rs 73 additions, 68 deletionssubstrate/frame/staking/src/tests.rs
- substrate/frame/support/src/storage/bounded_vec.rs 14 additions, 1 deletionsubstrate/frame/support/src/storage/bounded_vec.rs
Please register or sign in to comment