lighthouse/testing
Paul Hauner 27e83b888c Retrospective invalidation of exec. payloads for opt. sync (#2837)
## Issue Addressed

NA

## Proposed Changes

Adds the functionality to allow blocks to be validated/invalidated after their import as per the [optimistic sync spec](https://github.com/ethereum/consensus-specs/blob/dev/sync/optimistic.md#how-to-optimistically-import-blocks). This means:

- Updating `ProtoArray` to allow flipping the `execution_status` of ancestors/descendants based on payload validity updates.
- Creating separation between `execution_layer` and the `beacon_chain` by creating a `PayloadStatus` struct.
- Refactoring how the `execution_layer` selects a `PayloadStatus` from the multiple statuses returned from multiple EEs.
- Adding testing framework for optimistic imports.
- Add `ExecutionBlockHash(Hash256)` new-type struct to avoid confusion between *beacon block roots* and *execution payload hashes*.
- Add `merge` to [`FORKS`](c3a793fd73/Makefile (L17)) in the `Makefile` to ensure we test the beacon chain with merge settings.
    - Fix some tests here that were failing due to a missing execution layer.

## TODO

- [ ] Balance tests

Co-authored-by: Mark Mackey <mark@sigmaprime.io>
2022-02-28 22:07:48 +00:00
..
antithesis Optimized Docker images (#2966) 2022-01-31 22:55:03 +00:00
ef_tests Retrospective invalidation of exec. payloads for opt. sync (#2837) 2022-02-28 22:07:48 +00:00
eth1_test_rig Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
execution_engine_integration Retrospective invalidation of exec. payloads for opt. sync (#2837) 2022-02-28 22:07:48 +00:00
node_test_rig Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
simulator Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
state_transition_vectors Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
test-test_logger Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
web3signer_tests Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00