Dont require private key on import, patch by ErebusBat
This commit is contained in:
parent
d803e3ab30
commit
09c8e956e1
6
electrum
6
electrum
@ -276,7 +276,11 @@ if __name__ == '__main__':
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if cmd == 'import':
|
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:
|
try:
|
||||||
wallet.import_key(keypair,password)
|
wallet.import_key(keypair,password)
|
||||||
wallet.save()
|
wallet.save()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user