-
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
Validator penalty issues #196
Comments
I'd be ok with adding withdrawal logic back in, and just setting the deletion time to infinity. We should also add a receipt tree that includes withdrawal receipts (potentially doable as easily as just storing in the state a list of withdrawals in the last block, completely overwriting it each block, though this would make processing harder; the alternative is to have a |
get_changed_validators
repeatedly penalizing
Related issue:
|
link #354 |
This draft PR try to fix a longstanding wart (see #196, #371, #667) regarding bitfields. We define bitfields as lists or vectors of `bool`s, as opposed to `bytes`. Benefits: * Remove ugly-as-hell helper function `verify_bitfield` * No more bit manipulation with `justification_bitfield` * Merkleisation-friendly `justification_bitfield` (i.e. `justification_bitfield` does not change unless a new epoch is justified). * Easy parametrisation of the number of bits in `justification_bitfield` (can be more or fewer than 64—more may be useful for dApps and light clients) * Semantically cleaner typing This requires a minor SSZ change (Merkleisation not affected) where lists and vectors of `bool`s should be packed, similar to packing of `uintN`. We could alias `bool` to `uint1` so that the packing logic only needs to be defined once for `uintN`.
Issue
Within
get_changed_validators
there is a bug such thatvalidators_to_penalize
get penalized at every validator registry change. Penalties should only be applied at withdrawal.Proposed solution
The text was updated successfully, but these errors were encountered: