Skip to content

Commit

Permalink
feat: update ethereum-genesis-generator images (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 5, 2023
1 parent 11c2693 commit 8959fc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,25 @@ def launch_participant_network(
and network_params.electra_fork_epoch == None
):
ethereum_genesis_generator_image = (
"ethpandaops/ethereum-genesis-generator:1.3.14"
"ethpandaops/ethereum-genesis-generator:1.3.15"
)
# we are running capella genesis - default behavior
elif (
network_params.capella_fork_epoch == 0
and network_params.electra_fork_epoch == None
):
ethereum_genesis_generator_image = (
"ethpandaops/ethereum-genesis-generator:2.0.4"
"ethpandaops/ethereum-genesis-generator:2.0.6"
)
# we are running electra - experimental
elif network_params.electra_fork_epoch != None:
if network_params.electra_fork_epoch == 0:
ethereum_genesis_generator_image = (
"ethpandaops/ethereum-genesis-generator:3.0.0-rc.14"
"ethpandaops/ethereum-genesis-generator:4.0.0-rc.2"
)
else:
ethereum_genesis_generator_image = (
"ethpandaops/ethereum-genesis-generator:3.0.0-rc.16"
"ethpandaops/ethereum-genesis-generator:3.0.0-rc.17"
)
else:
fail(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ def generate_el_cl_genesis_data(
wait=None,
)

# this is super hacky lmao
genesis_validators_root = plan.run_python(
run="""
with open("/data/data/custom_config_data/genesis_validators_root.txt") as genesis_root:
print(genesis_root.read().strip(), end="")
""",
genesis_validators_root = plan.run_sh(
run="cat /data/data/custom_config_data/genesis_validators_root.txt",
files={"/data": genesis.files_artifacts[0]},
store=[StoreSpec(src="/tmp", name="genesis-validators-root")],
wait=None,
)

result = el_cl_genesis_data.new_el_cl_genesis_data(
genesis.files_artifacts[0], genesis_validators_root.output
)
Expand Down

0 comments on commit 8959fc8

Please sign in to comment.