Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StateAccumulatorV2] Fix edge case; Disable for mainnet (#18131)
## Description If a validator is behind on execution for the entire epoch, then checkpoint builder may craft the final checkpoint of the epoch and attempt to accumulate the root state hash, with the end result being that we skip accumulating all checkpoints of the epoch into the root state hash but the final. This is because to bootstrap running root accumulation at beginning of a new epoch, we use the previous root state hash, and we assume that if there are no running roots for the current epoch, we are handling accumulation for the beginning of the new epoch. To fix, let's check that the previous root state digest is current up to the previous checkpoint, otherwise await ## Test plan The following passes against 100 seeds ``` ./scripts/simtest/seed-search.py simtest --test test_simulated_load_with_reconfig_and_correlated_crashes ``` --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
- Loading branch information