pallet-session: Migrate the historical part to the new pallet macro (#9878)
* Migrate session-historical to the new pallet macro Signed-off-by:koushiro <koushiro.cqx@gmail.com> * pallet-session: Migrate the historical part to the new pallet macro Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Fix staking test runtime Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Update frame/session/src/historical/mod.rs * Update frame/session/src/historical/mod.rs * update migration doc Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * use hardcoded prefix for migration v1 Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * cargo +nightly-2021-11-08 fmt Signed-off-by:
koushiro <koushiro.cqx@gmail.com> Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com>
Showing
- substrate/frame/session/benchmarking/src/lib.rs 2 additions, 2 deletionssubstrate/frame/session/benchmarking/src/lib.rs
- substrate/frame/session/src/historical/mod.rs 74 additions, 62 deletionssubstrate/frame/session/src/historical/mod.rs
- substrate/frame/session/src/historical/offchain.rs 2 additions, 2 deletionssubstrate/frame/session/src/historical/offchain.rs
- substrate/frame/session/src/lib.rs 1 addition, 0 deletionssubstrate/frame/session/src/lib.rs
- substrate/frame/session/src/migrations/mod.rs 24 additions, 0 deletionssubstrate/frame/session/src/migrations/mod.rs
- substrate/frame/session/src/migrations/v1.rs 194 additions, 0 deletionssubstrate/frame/session/src/migrations/v1.rs
- substrate/frame/session/src/tests.rs 27 additions, 0 deletionssubstrate/frame/session/src/tests.rs
- substrate/frame/staking/src/mock.rs 1 addition, 0 deletionssubstrate/frame/staking/src/mock.rs
Please register or sign in to comment