-
Notifications
You must be signed in to change notification settings - Fork 997
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
Turned slashed and initiated_exit into booleans #658
Conversation
Cuts validator record size from 120 to 106 bytes, and arguably is a simplification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Nice simplifications 👍 Looking at the validator state machine a bit closer there may be bugs:
cc @djrtwo |
So I think the above bugs are due to confusing naming. (Specifically,
or
On the topic of naming, we probably ought to fix the "activated validator"/"active validator" confusion. My suggestion would be to renamed "activated" to "inducted". |
(1) (2) We only compare against As for your renaming suggestions, |
My understanding is that it does. There is no "queue" for activation; there's just a mechanism that scans left to right and grabs up the maximum number of eligible validators each time there is a validator set change. So |
My bad! In |
Say I have just been activated. That means my same for the exit logic below it. |
Thanks @djrtwo for the call clarifying this :) As discussed and agreed, I clarified the use of |
Cuts validator record size from 120 to 106 bytes, and arguably is a simplification