From 9bd0d6a285a44f161b08438a49c79c0d9817aa2a Mon Sep 17 00:00:00 2001 From: Daniel Knopik Date: Fri, 13 Dec 2024 17:30:14 +0100 Subject: [PATCH] add hack to connect to kurtosis BN --- anchor/client/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/anchor/client/src/lib.rs b/anchor/client/src/lib.rs index 5d687af..8cdf5b4 100644 --- a/anchor/client/src/lib.rs +++ b/anchor/client/src/lib.rs @@ -83,7 +83,9 @@ impl Client { "Starting the Anchor client" ); - let spec = Eth2Config::mainnet().spec; + let mut spec = Eth2Config::mainnet().spec; + // dirty hack to be able to connect to local kurtosis devnet + Arc::get_mut(&mut spec).unwrap().genesis_fork_version = [16, 0, 0, 56]; // Start the processor let processor_senders = processor::spawn(config.processor, executor.clone()); @@ -286,7 +288,8 @@ impl Client { .slot_clock(slot_clock.clone()) .validator_store(validator_store.clone()) .beacon_nodes(beacon_nodes.clone()) - .executor(executor.clone()); + .executor(executor.clone()) + .chain_spec(spec.clone()); //.graffiti(config.graffiti) //.graffiti_file(config.graffiti_file.clone());