Supports flags for evmos start cli (#43)

This commit is contained in:
Bo QIU 2024-04-09 17:54:34 +08:00 committed by GitHub
parent 7bcd9b1988
commit 4151375316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,8 +45,6 @@ class EvmosNode(BlockchainNode):
log, log,
rpc_timeout=10, rpc_timeout=10,
): ):
assert len(updated_config) == 0, "updated_config not supported for evmos"
data_dir = os.path.join(root_dir, "evmosd", "node" + str(index)) data_dir = os.path.join(root_dir, "evmosd", "node" + str(index))
rpc_url = "http://127.0.0.1:%s" % blockchain_rpc_port(index) rpc_url = "http://127.0.0.1:%s" % blockchain_rpc_port(index)
@ -78,5 +76,10 @@ class EvmosNode(BlockchainNode):
"--rpc.pprof_laddr", "127.0.0.1:%s" % arrange_port(EVMOS_PORT_CATEGORY_PPROF, index), "--rpc.pprof_laddr", "127.0.0.1:%s" % arrange_port(EVMOS_PORT_CATEGORY_PPROF, index),
] ]
for k, v in updated_config.items():
if type(k) == str and k.startswith("--"):
self.args.append(k)
self.args.append(str(v))
def setup_config(self): def setup_config(self):
""" Already batch initialized by shell script in framework """ """ Already batch initialized by shell script in framework """