da7b7a0f60
## Issue Addressed Resolves #3159 ## Proposed Changes Sends transactions to the EE before requesting for a payload in the `execution_integration_tests`. Made some changes to the integration tests in order to be able to sign and publish transactions to the EE: 1. `genesis.json` for both geth and nethermind was modified to include pre-funded accounts that we know private keys for 2. Using the unauthenticated port again in order to make `eth_sendTransaction` and calls from the `personal` namespace to import keys Also added a `fcu` call with `PayloadAttributes` before calling `getPayload` in order to give EEs sufficient time to pack transactions into the payload.
42 lines
1.0 KiB
Rust
42 lines
1.0 KiB
Rust
#![recursion_limit = "1024"]
|
|
/// This binary runs integration tests between Lighthouse and execution engines.
|
|
///
|
|
/// It will first attempt to build any supported integration clients, then it will run tests.
|
|
///
|
|
/// A return code of `0` indicates the tests succeeded.
|
|
mod build_utils;
|
|
mod execution_engine;
|
|
mod genesis_json;
|
|
mod geth;
|
|
mod nethermind;
|
|
mod test_rig;
|
|
mod transactions;
|
|
|
|
use geth::GethEngine;
|
|
use nethermind::NethermindEngine;
|
|
use test_rig::TestRig;
|
|
|
|
/// Set to `false` to send logs to the console during tests. Logs are useful when debugging.
|
|
const SUPPRESS_LOGS: bool = false;
|
|
|
|
fn main() {
|
|
if cfg!(windows) {
|
|
panic!("windows is not supported, only linux");
|
|
}
|
|
|
|
test_geth();
|
|
test_nethermind();
|
|
}
|
|
|
|
fn test_geth() {
|
|
let test_dir = build_utils::prepare_dir();
|
|
geth::build(&test_dir);
|
|
TestRig::new(GethEngine).perform_tests_blocking();
|
|
}
|
|
|
|
fn test_nethermind() {
|
|
let test_dir = build_utils::prepare_dir();
|
|
nethermind::build(&test_dir);
|
|
TestRig::new(NethermindEngine).perform_tests_blocking();
|
|
}
|