Payees lazy migration to PayoutDestination, Split variant for payouts, remove Controller#1196
Payees lazy migration to PayoutDestination, Split variant for payouts, remove Controller#1196
Payees lazy migration to PayoutDestination, Split variant for payouts, remove Controller#1196Conversation
…/polkadot-sdk into rb-payout-destination
…/polkadot-sdk into rb-payout-destination
|
The CI pipeline was cancelled due to failure one of the required jobs. |
|
Just a note for AppSec, this PR has broken due to a ledger refactor & needs to be fixed. It'll involve rebuilding the PR from the latest master I imagine. I will take a stab this week. |
* added lost stall timeout fix * use best_block.parent() to start mortal tx era * fmt * Revert "revert messages transactions mortality" This reverts commit 77776357dafdfa80dcb3ec307d76fcfd0d5195bb.
|
@Ank4n why was this never merged? Should we now close this pr? |
This is probably blocked by #3706 that is not yet executed. |
|
There was a lack of interest in reviewing and finalising this so it never got past the finish line. It can be closed and reimplemented as the codebase has changed and I don't have org access to manage this PR anymore. |
Tracking issue: #1195
This PR is part 1 of a lazy migration to update reward destinations, which removes Controller, refactors RewardDestination into a new PayoutDestination enum, and adds an additional Split enum for the ability to compound a part of rewards and have the rest as free balance.
PayoutDestinationwith new variants and introducePayeesstorage item to replace Payee.set_payeeremoves Payee (RewardDestination) and inserts toPayees(PayoutDestination)update_payeecall to lazily migrate fromPayeetoPayeesstorage item.Splitlogic onpayout_stakerswith getter that migratesPayeeto newPayeesstorage.get_payout_destination, ensurePayeesis populated.