1
0

cmd: add sign with privkey and wallet (#7147)

* Remove check for sign with privkey in init_cmdline

* Add with_privkey and with_wallet variants of signtransaction command

* Add unit tests for signtransaction_with_privkey and signtransaction_with_wallet commands
This commit is contained in:
Nima
2021-06-08 16:33:55 +02:00
committed by GitHub
parent 7e6d65ec11
commit 13e4424922
3 changed files with 50 additions and 19 deletions

View File

@@ -120,10 +120,6 @@ def init_cmdline(config_options, wallet_path, server, *, config: 'SimpleConfig')
cmdname = config.get('cmd')
cmd = known_commands[cmdname]
if cmdname == 'signtransaction' and config.get('privkey'):
cmd.requires_wallet = False
cmd.requires_password = False
if cmdname in ['payto', 'paytomany'] and config.get('unsigned'):
cmd.requires_password = False