-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cliff validator power not correctly updated when cliff validator increases in power #1857
Comments
Also, if the cliff validator increases in power, it might stop being the cliff validator - I don't think we handle that correctly. |
I think this might be a good chance for me to get my hands dirty with staking. |
Great - also pulling in @rigelrozanski, might want to discuss what we want to change quickly first. Note that this is really two distinct bugs:
#1858 has an isolating testcase for each, feel free to take over that PR. |
Great. @rigelrozanski let's sync up on this. |
Let's talk about this on Monday - great catch fuzzer! |
Caught by fuzzer (#1783).
UpdateValidator
has a special case for an already-bonded validator increasing in power where it skips the usual store iteration - but if the cliff validator has increased in power, this will fail to update the power stored atValidatorPowerCliffKey
.The text was updated successfully, but these errors were encountered: