Fix gaslimit bug in chainlib eth cli

This commit is contained in:
nolash 2021-08-28 10:24:46 +02:00
parent 0f2a490218
commit 5d7c5556d4
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 4 additions and 3 deletions

View File

@ -99,9 +99,10 @@ class Config(BaseConfig):
default_base_config_dir = os.path.join(script_dir, 'data', 'config') default_base_config_dir = os.path.join(script_dir, 'data', 'config')
default_fee_limit = 21000 default_fee_limit = 21000
@classmethod @classmethod
def from_args(cls, args, arg_flags=0x0f, env=os.environ, extra_args={}, base_config_dir=None, default_config_dir=None, user_config_dir=None, default_fee_limit=None, logger=None, load_callback=None): def from_args(cls, args, arg_flags=0x0f, env=os.environ, extra_args={}, base_config_dir=None, default_config_dir=None, user_config_dir=None, default_fee_limit=None, logger=None, load_callback=None):
if default_fee_limit == None:
default_fee_limit = cls.default_fee_limit
config = BaseConfig.from_args(args, arg_flags=arg_flags, env=env, extra_args=extra_args, base_config_dir=base_config_dir, default_config_dir=default_config_dir, user_config_dir=user_config_dir, default_fee_limit=default_fee_limit, logger=logger, load_callback=load_callback) config = BaseConfig.from_args(args, arg_flags=arg_flags, env=env, extra_args=extra_args, base_config_dir=base_config_dir, default_config_dir=default_config_dir, user_config_dir=user_config_dir, default_fee_limit=default_fee_limit, logger=logger, load_callback=load_callback)
if not config.get('RPC_DIALECT'): if not config.get('RPC_DIALECT'):

View File

@ -244,7 +244,7 @@ class OverrideGasOracle(RPCGasOracle):
else: else:
fee_units = MINIMUM_FEE_UNITS fee_units = MINIMUM_FEE_UNITS
logg.debug('override gas oracle without explicit limit, setting default {}'.format(fee_units)) logg.debug('override gas oracle without explicit limit, setting default {}'.format(fee_units))
return (fee_price, fee_units) return (fee_price, fee_units)

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chainlib-eth name = chainlib-eth
version = 0.0.9a6 version = 0.0.9a7
description = Ethereum implementation of the chainlib interface description = Ethereum implementation of the chainlib interface
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no