fix restore threads
This commit is contained in:
parent
428fbf1f63
commit
01349f6528
9
electrum
9
electrum
@ -175,10 +175,6 @@ if __name__ == '__main__':
|
|||||||
if fee: wallet.fee = float(fee)
|
if fee: wallet.fee = float(fee)
|
||||||
if gap: wallet.gap_limit = int(gap)
|
if gap: wallet.gap_limit = int(gap)
|
||||||
|
|
||||||
network = Network(config)
|
|
||||||
network.start()
|
|
||||||
wallet.start_threads(network)
|
|
||||||
|
|
||||||
if cmd == 'restore':
|
if cmd == 'restore':
|
||||||
seed = raw_input("seed:")
|
seed = raw_input("seed:")
|
||||||
try:
|
try:
|
||||||
@ -192,9 +188,10 @@ if __name__ == '__main__':
|
|||||||
wallet.init_seed( str(seed) )
|
wallet.init_seed( str(seed) )
|
||||||
wallet.save_seed()
|
wallet.save_seed()
|
||||||
wallet.create_accounts()
|
wallet.create_accounts()
|
||||||
wallet.synchronize()
|
|
||||||
|
|
||||||
print_msg("Recovering wallet...")
|
print_msg("Recovering wallet...")
|
||||||
|
network = Network(config)
|
||||||
|
network.start()
|
||||||
|
wallet.start_threads(network)
|
||||||
wallet.update()
|
wallet.update()
|
||||||
if wallet.is_found():
|
if wallet.is_found():
|
||||||
print_msg("Recovery successful")
|
print_msg("Recovery successful")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user