Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To support adressing any nimbus-eth2 `BeaconState` member, 32-bit wide indices are not enough. `BeaconState` requires 5 levels of depth; `VALIDATOR_REGISTRY_LIMIT` for the `validators` array requires 40 levels for the contents plus 2 levels for `len` and the root. Another 4 levels are required for `Validator`. This means that 52-bit indices are needed. Extending to `uint64` should provide enough leeway without requiring further implementation adjustments.
- Loading branch information