fix create and restore from command line
This commit is contained in:
parent
437c79eab5
commit
076b949039
@ -5,8 +5,8 @@ string = sys.stdin.read()
|
|||||||
|
|
||||||
import hashlib, os
|
import hashlib, os
|
||||||
version = "1.7.3"
|
version = "1.7.3"
|
||||||
version_win = "1.7.2"
|
version_win = "1.7.3"
|
||||||
version_mac = "1.7.2"
|
version_mac = "1.7.3"
|
||||||
|
|
||||||
_tgz="Electrum-%s.tar.gz"%version
|
_tgz="Electrum-%s.tar.gz"%version
|
||||||
_zip="Electrum-%s.zip"%version
|
_zip="Electrum-%s.zip"%version
|
||||||
|
|||||||
2
electrum
2
electrum
@ -244,6 +244,7 @@ if __name__ == '__main__':
|
|||||||
wallet.init_sequence(str(seed))
|
wallet.init_sequence(str(seed))
|
||||||
else:
|
else:
|
||||||
wallet.init_seed( str(seed) )
|
wallet.init_seed( str(seed) )
|
||||||
|
wallet.save_seed()
|
||||||
|
|
||||||
if not options.offline:
|
if not options.offline:
|
||||||
interface = Interface(config)
|
interface = Interface(config)
|
||||||
@ -269,6 +270,7 @@ if __name__ == '__main__':
|
|||||||
print_msg("Wallet saved in '%s'"%wallet.config.path)
|
print_msg("Wallet saved in '%s'"%wallet.config.path)
|
||||||
else:
|
else:
|
||||||
wallet.init_seed(None)
|
wallet.init_seed(None)
|
||||||
|
wallet.save_seed()
|
||||||
wallet.synchronize() # there is no wallet thread
|
wallet.synchronize() # there is no wallet thread
|
||||||
wallet.save()
|
wallet.save()
|
||||||
print_msg("Your wallet generation seed is: " + wallet.seed)
|
print_msg("Your wallet generation seed is: " + wallet.seed)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user