I've added Staking
to substrate-node-template
and just explored the feature. I've managed to add validators and nominators and it looks like everything is working well.
One thing I'm not able to figure out is how the rewards are being distributed. I've been watching the events at the end of every era and it looks like only Staking.EraPaid
is being fired.
From what I understand from the discussion here, What does the Staking.EraPaid event mean? , I should be getting the events Staking.PayoutStarted
and Staking.Rewarded
as well.
I guess I'm trying to figure out the following
- Which pallet is actually distributing the rewards?
pallet_election_provider_multi_phase
orpallet_staking
- Is there anything I need to define for the Payouts to happen?
EraPaid
at the end of every era.EraPaid
event at the end of every era though. But, nothing else.