Skip to content

Commit

Permalink
fixing if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh committed Jun 18, 2024
1 parent f53ff11 commit 273e376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/el/besu/besu_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def get_config(
]
if (
network not in constants.PUBLIC_NETWORKS
or constants.NETWORK_NAME.shadowfork in network
):
cmd.append(
"--genesis-file="
Expand Down
9 changes: 5 additions & 4 deletions src/el/nethermind/nethermind_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,21 @@ def get_config(
"--Metrics.ExposeHost=0.0.0.0",
]

if network not in constants.PUBLIC_NETWORKS:
cmd.append("--config=none.cfg")
if constants.NETWORK_NAME.shadowfork in network:
cmd.append(
"--Init.ChainSpecPath="
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
+ "/chainspec.json"
)
elif constants.NETWORK_NAME.shadowfork in network:
cmd.append("--config=" + network.split("-")[0])
cmd.appent("--Init.BaseDbPath=nethermind_db/" + network.split("-")[0])
elif network not in constants.PUBLIC_NETWORKS:
cmd.append("--config=none.cfg")
cmd.append(
"--Init.ChainSpecPath="
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
+ "/chainspec.json"
)
cmd.append("--config=" + network)
else:
cmd.append("--config=" + network)

Expand Down

0 comments on commit 273e376

Please sign in to comment.