Skip to content
  • Ross Bulat's avatar
    Deprecate `RewardDestination::Controller` (#2380) · 7a32f4be
    Ross Bulat authored
    
    
    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: default avatarGonçalo Pestana <[email protected]>
    Co-authored-by: default avatargeorgepisaltu <[email protected]>
    7a32f4be