chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 98ecf91adcd0c3e53e607b0ae9f1905480e25d9e
parent c739652203309e59b382b63d3ebd29c2476e325b
Author: lash <dev@holbrook.no>
Date:   Wed, 11 May 2022 18:25:46 +0000

WIP factor out config processing

Diffstat:
Mchainlib/cli/config.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/chainlib/cli/config.py b/chainlib/cli/config.py @@ -359,6 +359,12 @@ def process_config(config, arg, args, flags): config.censor('PASSPHRASE', 'WALLET') config.dict_override(args_override, 'cli args', allow_empty=True) + if arg.match('provider', flags): + + config.add(getattr(args, 'height'), '_HEIGHT') + #if flags & (Flag.PROVIDER | Flag.NO_TARGET) == Flag.PROVIDER: + # config.add(getattr(args, 'height'), '_HEIGHT') + config.process() return config