Skip to content

Commit

Permalink
fix: erigon chain should be set to dev (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Jan 10, 2024
1 parent d5bf451 commit 1f40d84
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/el/erigon/erigon_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ def get_config(

cmd = [
"erigon",
"--chain={0}".format(
network if network in constants.PUBLIC_NETWORKS else "dev"
),
"--log.console.verbosity=" + verbosity_level,
"--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
"--port={0}".format(DISCOVERY_PORT_NUM),
Expand Down Expand Up @@ -242,17 +245,11 @@ def get_config(
)

if len(extra_params) > 0:
# this is a repeated<proto type>, we convert it into Starlark
cmd.extend([param for param in extra_params])

if network not in constants.PUBLIC_NETWORKS:
command_arg = [init_datadir_cmd_str, " ".join(cmd)]

command_arg_str = " && ".join(command_arg)
else:
cmd.append("--chain={0}".format(network))
command_arg = cmd
command_arg_str = " ".join(command_arg)

return ServiceConfig(
image=image,
Expand Down

0 comments on commit 1f40d84

Please sign in to comment.