Reserve space for one validator sweep withdrawal#4832
Reserve space for one validator sweep withdrawal#4832jtraglia merged 3 commits intoethereum:masterfrom
Conversation
|
While either adding the assertion or switching |
I agree with this & this is the reason why I did both (asserts & comp changes). |
jihoonsong
left a comment
There was a problem hiding this comment.
Given that we have four withdrawal functions, passing max_withdrawals_limit or something similar would make these functions less stateful. Nonetheless, this PR achieves what it aims for.
In order for
update_next_withdrawal_validator_indexto function properly, the last withdrawal must be from the validator sweep (or empty).consensus-specs/specs/capella/beacon-chain.md
Lines 466 to 480 in ea1b812