tDont require private key on import, patch by ErebusBat - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 09c8e956e13627a6250c3a9b12573ab6ac744956
DIR parent d803e3ab3030141ad5d3a556084e392797045a35
HTML Author: Maran <maran.hidskes@gmail.com>
Date: Wed, 1 Aug 2012 21:52:52 +0200
Dont require private key on import, patch by ErebusBat
Diffstat:
M electrum | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/electrum b/electrum
t@@ -276,7 +276,11 @@ if __name__ == '__main__':
exit(1)
if cmd == 'import':
- keypair = args[1]
+ # See if they specificed a key on the cmd line, if not prompt
+ if len(args) > 1:
+ keypair = args[1]
+ else:
+ keypair = prompt_password('Enter Address:PrivateKey (will not echo):', False)
try:
wallet.import_key(keypair,password)
wallet.save()