Browse Source

signtxwithkey: use prompt if privkey is not passed

master
ThomasV 11 years ago
parent
commit
72489da26d
  1. 4
      electrum

4
electrum

@ -370,9 +370,9 @@ if __name__ == '__main__':
password = None
# add missing arguments, do type conversions
if cmd.name == 'importprivkey':
if (cmd.name == 'importprivkey' and len(args)==1)\
or (cmd.name == 'signtxwithkey' and len(args)==2):
# See if they specificed a key on the cmd line, if not prompt
if len(args) == 1:
args.append(prompt_password('Enter PrivateKey (will not echo):', False))
elif cmd.name == 'createmultisig':

Loading…
Cancel
Save