Issue came to light while investigating https://github.com/polkadot-fellows/runtimes/actions/runs/20315474893/job/58358202513 in KAH
There were two nominators not in voterlist
Same with PAH, this account is missing in voterlist
The BUG
- While election snapshot is ongoing, voterlist is locked, and no updates happen to it.
- If a validator starts validating, or a nominator nominates for the first time during these snapshot blocks, the account never ends up in the bags list, and therefore never gets exposed.
Same happens on any kind of update on bond (bond_extra, unbond) but if the account already exists in the bagslist, we have a mechanism to auto rebag 5 accounts every block so there vote will eventually get updated.
Potential fix
- Buffer nominate/validate coming during locked phase, and reapply them when voter list is unlocked.