Deprecate `RewardDestination::Controller` (#2380)
Deprecates `RewardDestination::Controller` variant. - [x] `RewardDestination::Controller` annotated with `#[deprecated]`. - [x] `Controller` variant is now handled the same way as `Stash` in `payout_stakers`. - [x] `set_payee` errors if `RewardDestination::Controller` is provided. - [x] Added `update_payee` call to lazily migrate `RewardDestination::Controller` `Payee` storage entries to `RewardDestination::Account(controller)` . - [x] `payout_stakers_dead_controller` has been removed from benches & weights - was not used. - [x] Tests no longer use `RewardDestination::Controller`. --------- Co-authored-by: command-bot <> Co-authored-by:Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by:
georgepisaltu <52418509+georgepisaltu@users.noreply.github.com>
Showing
- polkadot/runtime/westend/src/weights/pallet_staking.rs 106 additions, 132 deletionspolkadot/runtime/westend/src/weights/pallet_staking.rs
- substrate/frame/staking/src/benchmarking.rs 16 additions, 38 deletionssubstrate/frame/staking/src/benchmarking.rs
- substrate/frame/staking/src/lib.rs 4 additions, 2 deletionssubstrate/frame/staking/src/lib.rs
- substrate/frame/staking/src/mock.rs 1 addition, 1 deletionsubstrate/frame/staking/src/mock.rs
- substrate/frame/staking/src/pallet/impls.rs 10 additions, 3 deletionssubstrate/frame/staking/src/pallet/impls.rs
- substrate/frame/staking/src/pallet/mod.rs 43 additions, 2 deletionssubstrate/frame/staking/src/pallet/mod.rs
- substrate/frame/staking/src/tests.rs 87 additions, 116 deletionssubstrate/frame/staking/src/tests.rs
- substrate/frame/staking/src/weights.rs 208 additions, 260 deletionssubstrate/frame/staking/src/weights.rs
Please register or sign in to comment