-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adds stake-tracker
pallet
#14620
base: master
Are you sure you want to change the base?
Adds stake-tracker
pallet
#14620
Conversation
bot rebase |
Rebased |
bot fmt |
@gpestana https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3324898 was started for your command Comment |
@gpestana Command |
The CI pipeline was cancelled due to failure one of the required jobs. |
This PR adds the stake-tracker pallet without integrating it with the staking and bags lists pallets.
The stake-tracker pallet implements the
OnStakingUpdate
trait to listen to staking events and multiplexes those events to one or multiple types (e.g. pallets). Initially, the stake tracker pallet is used as a degree of indirection to maintain the target and voter semi-sorted lists up to date.The final goal is to achieve a design where the targets and voters lists are updated at each relevant staking event through the stake-tracker pallet. The list reads in staking are performed directly through the
SortedListProvider
.To finalize
Related and step towards paritytech/polkadot-sdk#443