chaind-eth

Queue server for ethereum
Log | Files | Refs | README | LICENSE

commit 19291b93ce13d05db17e02eced41620efd0106ba
parent 930faef213851401f9666e7e01da004549de8f77
Author: nolash <dev@holbrook.no>
Date:   Mon, 19 Jul 2021 14:02:31 +0200

Enable config override

Diffstat:
Mchaind_eth/dispatch.py | 1+
Mchaind_eth/runnable/server.py | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/chaind_eth/dispatch.py b/chaind_eth/dispatch.py @@ -4,6 +4,7 @@ import logging # external imports from chainlib.eth.address import to_checksum_address from chainlib.eth.tx import unpack +from chainlib.error import JSONRPCException from chainqueue.enum import StatusBits from chainqueue.sql.query import count_tx from hexathon import strip_0x diff --git a/chaind_eth/runnable/server.py b/chaind_eth/runnable/server.py @@ -34,7 +34,7 @@ arg_flags = chainlib.eth.cli.argflag_std_read argparser = chainlib.eth.cli.ArgumentParser(arg_flags) argparser.add_argument('--data-dir', type=str, help='data directory') argparser.add_argument('--runtime-dir', type=str, help='runtime directory') -argparser.add_argument('--session-id', type=str, help='runtime directory') +argparser.add_argument('--session-id', dest='session_id', type=str, help='session identifier') args = argparser.parse_args() extra_args = { 'runtime_dir': 'SESSION_RUNTIME_DIR', @@ -42,7 +42,7 @@ extra_args = { 'session_id': 'SESSION_ID', } #config = chainlib.eth.cli.Config.from_args(args, arg_flags, default_config_dir=config_dir, extend_base_config_dir=config_dir) -config = chainlib.eth.cli.Config.from_args(args, arg_flags, base_config_dir=config_dir) +config = chainlib.eth.cli.Config.from_args(args, arg_flags, extra_args=extra_args, base_config_dir=config_dir) logg.debug('session id {} {}'.format(type(config.get('SESSION_ID')), config.get('SESSION_ID'))) if config.get('SESSION_ID') == None: