lighthouse/testing
Paul Hauner 267d8babc8 Prepare proposer (#3043)
## Issue Addressed

Resolves #2936

## Proposed Changes

Adds functionality for calling [`validator/prepare_beacon_proposer`](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Validator/prepareBeaconProposer) in advance.

There is a `BeaconChain::prepare_beacon_proposer` method which, which called, computes the proposer for the next slot. If that proposer has been registered via the `validator/prepare_beacon_proposer` API method, then the `beacon_chain.execution_layer` will be provided the `PayloadAttributes` for us in all future forkchoiceUpdated calls. An artificial forkchoiceUpdated call will be created 4s before each slot, when the head updates and when a validator updates their information.

Additionally, I added strict ordering for calls from the `BeaconChain` to the `ExecutionLayer`. I'm not certain the `ExecutionLayer` will always maintain this ordering, but it's a good start to have consistency from the `BeaconChain`. There are some deadlock opportunities introduced, they are documented in the code.

## Additional Info

- ~~Blocked on #2837~~

Co-authored-by: realbigsean <seananderson33@GMAIL.com>
2022-03-09 00:42:05 +00:00
..
antithesis Optimized Docker images (#2966) 2022-01-31 22:55:03 +00:00
ef_tests Replace OpenOptions::new with File::options to be readable (#3059) 2022-03-07 06:30:18 +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 Prepare proposer (#3043) 2022-03-09 00:42:05 +00:00
node_test_rig Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
simulator Filter non global ips from discovery (#3023) 2022-03-02 03:14:27 +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