Add a flag to always use payloads from builders (#4052)

## Issue Addressed

#4040 

## Proposed Changes

- Add the `always_prefer_builder_payload`  field to `Config` in `beacon_node/client/src/config.rs`.
- Add that same field to `Inner` in `beacon_node/execution_layer/src/lib.rs`
- Modify the logic for picking the payload in `beacon_node/execution_layer/src/lib.rs`
- Add the `always-prefer-builder-payload` flag to the beacon node CLI
- Test the new flags in `lighthouse/tests/beacon_node.rs`

Co-authored-by: Paul Hauner <paul@paulhauner.com>
This commit is contained in:
Daniel Ramirez Chiquillo
2023-03-07 05:37:28 +00:00
parent 5bb635d17f
commit 4c109115ca
6 changed files with 39 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
#![cfg(test)]
#![recursion_limit = "256"]
#![recursion_limit = "512"]
use beacon_chain::StateSkipConfig;
use node_test_rig::{