tsigntxwithkey: use prompt if privkey is not passed - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 72489da26de6998dfcee3e115fd2a1d44c996340 (DIR) parent 581ed1ed26f9a215b090840d83f7791832c25aa3 (HTM) Author: ThomasV <thomasv@gitorious> Date: Thu, 30 Oct 2014 17:03:29 +0100 signtxwithkey: use prompt if privkey is not passed Diffstat: M electrum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/electrum b/electrum t@@ -370,10 +370,10 @@ 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)) + args.append(prompt_password('Enter PrivateKey (will not echo):', False)) elif cmd.name == 'createmultisig': args = [cmd, int(args[1]), json.loads(args[2])]