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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user