MCPcopy Create free account
hub / github.com/base/base / setup

Function setup

crates/execution/node/src/utils.rs:24–35  ·  view source on GitHub ↗

Creates the initial setup with `num_nodes` of the node config, started and connected.

(num_nodes: usize)

Source from the content-addressed store, hash-verified

22
23/// Creates the initial setup with `num_nodes` of the node config, started and connected.
24pub 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.
38pub async fn advance_chain(

Callers 1

can_syncFunction · 0.50

Calls 3

ecotone_activatedMethod · 0.80
buildMethod · 0.45
genesisMethod · 0.45

Tested by 1

can_syncFunction · 0.40