git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d803e3a
)
Dont require private key on import, patch by ErebusBat
author
Maran
<maran.hidskes@gmail.com>
Wed, 1 Aug 2012 19:52:52 +0000 (21:52 +0200)
committer
Maran
<maran.hidskes@gmail.com>
Wed, 1 Aug 2012 19:52:52 +0000 (21:52 +0200)
electrum
patch
|
blob
|
history
diff --git
a/electrum
b/electrum
index
f6ee444
..
43c907c
100755
(executable)
--- a/
electrum
+++ b/
electrum
@@
-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()