-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Validator with apparently zero backing chosen #4331
Comments
could very well be phragmen. I had it on my todo list to add a 'minimum entry barrier' parameter to it, since at the moment, it allows all candidates to be considered and potentially elected. |
Meaning: Phragmen indeed allows one with zero stake to be elected. Yet, I am sure that staking should never allow someone to bond with a value less than ED, so it is even more unclear to me where the issue is. Simple patch is to add the aforementioned Also, unbonding in a way that leads to dust is also handled. |
We want some minimum self stake I thought, which presumably gives the minimum_entry_barrier, no? If we supported a separate minimum_exit/ellect_barrier then this requires tweaks to phragmen. |
Is it nearby the last session of an era ? if so I feel it could be related to #4121 let's say there is new era at session 5 substrate/frame/staking/src/lib.rs Lines 1610 to 1617 in c6fc2e6
So new_session(5) is called and returns the new validator set. Then at the end of the session 5 the value in storage proposed fix is #4346 EDIT: a good way to check would be to query the state of the exposure in previous session and if the validator hasn't change |
I confirm:
|
Replaying the accounts transactions from CC2 from
Nothing strange. Current status of the account seems unchanged. Still bonded with 100,000,000,000 and not elected. FYI
This is implicitly forced via staking; See my previous comment:
Thanks @thiolliere for following up; Your explanations makes sense. I'm online is falling into |
As for phragmen's internal code: as mentioned, unless if further problems pop up, I rather not make it involved in such details. The API is defined as: if a code calls
|
Close by #4474 |
At some point, a validator with zero exposure was found to be offline:
https://polkascan.io/pre/kusama-cc3/event/146198-0
If shouldn't be possible to be selected as a validator with zero exposure. Either there's something wrong with Phragmen or there's something wrong with the exposure fetching as part of im_online.
The text was updated successfully, but these errors were encountered: