Commit 1f40d840 authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

fix: erigon chain should be set to dev (#447)

parent d5bf4515
...@@ -174,6 +174,9 @@ def get_config( ...@@ -174,6 +174,9 @@ def get_config(
cmd = [ cmd = [
"erigon", "erigon",
"--chain={0}".format(
network if network in constants.PUBLIC_NETWORKS else "dev"
),
"--log.console.verbosity=" + verbosity_level, "--log.console.verbosity=" + verbosity_level,
"--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER, "--datadir=" + EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
"--port={0}".format(DISCOVERY_PORT_NUM), "--port={0}".format(DISCOVERY_PORT_NUM),
...@@ -242,17 +245,11 @@ def get_config( ...@@ -242,17 +245,11 @@ def get_config(
) )
if len(extra_params) > 0: if len(extra_params) > 0:
# this is a repeated<proto type>, we convert it into Starlark
cmd.extend([param for param in extra_params]) cmd.extend([param for param in extra_params])
if network not in constants.PUBLIC_NETWORKS: if network not in constants.PUBLIC_NETWORKS:
command_arg = [init_datadir_cmd_str, " ".join(cmd)] command_arg = [init_datadir_cmd_str, " ".join(cmd)]
command_arg_str = " && ".join(command_arg) command_arg_str = " && ".join(command_arg)
else:
cmd.append("--chain={0}".format(network))
command_arg = cmd
command_arg_str = " ".join(command_arg)
return ServiceConfig( return ServiceConfig(
image=image, image=image,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment