[Staking] Extra check for Virtual Stakers #5791
Labels
I9-optimisation
An enhancement to provide better overall performance in terms of time-to-completion for a task.
T2-pallets
This PR/Issue is related to a particular pallet.
In staking, virtual stakers are system generated keys to manage ledger for pool accounts. These accounts do not need to exist (and will not exist unless some account transfers funds to it to mess with the system).
Only pallets (trusted modules) have access to create these type of stakers via the trait
StakingUnchecked
.pallet-staking
does not do any validation on it.Defensively, we could add the following
virtual_stakers
have zero nonce.The text was updated successfully, but these errors were encountered: