Skip to content

Commit

Permalink
add latest snapshot to any network
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Feb 2, 2024
1 parent e2c8c06 commit 3455265
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@ def launch_participant_network(
if (
constants.NETWORK_NAME.shadowfork in network_params.network
): # shadowfork requires some preparation
network_name = network_params.network.split("-shadowfork")[
base_network = network_params.network.split("-shadowfork")[
0
] # overload the network name to remove the shadowfork suffix
network_id = constants.NETWORK_ID[
network_name
base_network
] # overload the network id to match the network name
latest_block = plan.run_sh( # fetch the latest block
run="mkdir -p /shadowfork && \
curl -o /shadowfork/latest_block.json https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/holesky/geth/latest/latest_snapshot_block.json",
curl -o /shadowfork/latest_block.json https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/"
+ base_network
+ "/geth/latest/latest_snapshot_block.json",
image="badouralix/curl-jq",
store=[StoreSpec(src="/shadowfork", name="latest_blocks")],
)
Expand Down

0 comments on commit 3455265

Please sign in to comment.