[DO NOT MERGE] Bug in Gloas specs due to BUILDER_INDEX_FLAG#4835
[DO NOT MERGE] Bug in Gloas specs due to BUILDER_INDEX_FLAG#4835leolara wants to merge 1 commit into
Conversation
|
@leolara you are confusing two separate things. This was a known issue & my mistake. Fixed here: |
and #4832 Is your opinion about how this specific bug caused by BUILDER_INDEX_FLAG should be fixed. @jtraglia is this incorrect? |
I'm saying I've already explained to you during our meeting why we went this direction, but feel free to propose an alternative to |
It would be a different problem and different behaviour.
My intention is not to start a discussion here, but documenting the bug. |
|
Closing as it is included here: #4830 |
Bug description:
process_withdrawals(gloas) callsupdate_next_withdrawal_validator_index(capella), that in some situations reads a ValidatorIndex that since gloas could contain a builder index by BUILDER_INDEX_FLAG in some situations. But update_next_withdrawal_validator_index does not handle BUILDER_INDEX_FLAG and hence assumes a inexistent validator index.My personal opinion:
BUILDER_INDEX_FLAG will cause bugs, not only in the specs but also on the clients, it requires that any method that handles a ValidatorIndex should be rewritten in order to avoid bugs. We should evaluate if adding more fields to the state could be a more robust solution.