Creates the initial setup with `num_nodes` of the node config, started and connected.
(num_nodes: usize)
| 22 | |
| 23 | /// Creates the initial setup with `num_nodes` of the node config, started and connected. |
| 24 | pub async fn setup(num_nodes: usize) -> eyre::Result<(Vec<BaseNode>, Wallet)> { |
| 25 | let genesis: Genesis = |
| 26 | serde_json::from_str(include_str!("../tests/assets/genesis.json")).unwrap(); |
| 27 | reth_e2e_test_utils::setup_engine( |
| 28 | num_nodes, |
| 29 | Arc::new(BaseChainSpecBuilder::base_mainnet().genesis(genesis).ecotone_activated().build()), |
| 30 | false, |
| 31 | Default::default(), |
| 32 | payload_attributes, |
| 33 | ) |
| 34 | .await |
| 35 | } |
| 36 | |
| 37 | /// Advance the chain with sequential payloads returning them in the end. |
| 38 | pub async fn advance_chain( |