commit cffcb1146386d6f10aed5a8e64cd7b9d087e9252
parent 37d012c1ca21e702eb631b6fd171fa1106d501da
Author: lash <dev@holbrook.no>
Date: Mon, 14 Aug 2023 17:33:39 +0100
Skip wallet passphrase prompt when no wallet file specified
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.5.3
+ * Skip wallet passphrase prompt when no wallet keyfile specified
- 0.5.2
* Expose dialect filter property in chain interface
* Pass dialect filter to from_src methods in chain interface
diff --git a/chainlib/cli/config.py b/chainlib/cli/config.py
@@ -82,7 +82,7 @@ def process_config(config, arg, args, flags, positional_name=None):
f = open(fp, 'r')
args_override['WALLET_PASSPHRASE'] = f.read()
f.close()
- elif not args.z:
+ elif not args.z and bool(args.y):
import getpass
args_override['WALLET_PASSPHRASE'] = getpass.getpass('wallet passphrase: ')
config.censor('PASSPHRASE', 'WALLET')
diff --git a/setup.cfg b/setup.cfg
@@ -3,7 +3,7 @@ name=chainlib
license=AGPLv3+
author_email=dev@holbrook.no
description=Generic blockchain access library and tooling
-version=0.5.2
+version=0.5.3
url=https://git.defalsify.org/chainlib
author=Louis Holbrook