mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 08:41:43 +00:00
https://github.com/sigp/lighthouse/issues/6937 - Use `ethers-rs` [`Signer`](https://www.gakonst.com/ethers-rs/middleware/signer.html) middleware for local signing and sending raw txs to geth - ~~Set `totalDifficulty = 0` through `serde` default if the block does not contain a `totalDifficulty` field~~
44 lines
1.1 KiB
Rust
44 lines
1.1 KiB
Rust
#![recursion_limit = "256"] // for inline json
|
|
|
|
/// 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, true).perform_tests_blocking();
|
|
geth::clean(&test_dir);
|
|
}
|
|
|
|
fn test_nethermind() {
|
|
let test_dir = build_utils::prepare_dir();
|
|
nethermind::build(&test_dir);
|
|
TestRig::new(NethermindEngine, false).perform_tests_blocking();
|
|
}
|