|
@ -259,7 +259,15 @@ if __name__ == '__main__': |
|
|
wallet.seed = str(seed) |
|
|
wallet.seed = str(seed) |
|
|
wallet.init_mpk( wallet.seed ) |
|
|
wallet.init_mpk( wallet.seed ) |
|
|
if not options.offline: |
|
|
if not options.offline: |
|
|
|
|
|
|
|
|
|
|
|
interface = Interface(config) |
|
|
|
|
|
interface.start() |
|
|
|
|
|
wallet.interface = interface |
|
|
WalletSynchronizer(wallet, config).start() |
|
|
WalletSynchronizer(wallet, config).start() |
|
|
|
|
|
|
|
|
|
|
|
verifier = WalletVerifier(interface, config) |
|
|
|
|
|
wallet.set_verifier(verifier) |
|
|
|
|
|
|
|
|
print "Recovering wallet..." |
|
|
print "Recovering wallet..." |
|
|
wallet.up_to_date_event.clear() |
|
|
wallet.up_to_date_event.clear() |
|
|
wallet.up_to_date = False |
|
|
wallet.up_to_date = False |
|
@ -267,12 +275,12 @@ if __name__ == '__main__': |
|
|
if wallet.is_found(): |
|
|
if wallet.is_found(): |
|
|
print "Recovery successful" |
|
|
print "Recovery successful" |
|
|
else: |
|
|
else: |
|
|
print_error("Warning: Found no history for this wallet") |
|
|
print "Warning: Found no history for this wallet" |
|
|
else: |
|
|
else: |
|
|
wallet.synchronize() |
|
|
wallet.synchronize() |
|
|
wallet.fill_addressbook() |
|
|
wallet.fill_addressbook() |
|
|
wallet.save() |
|
|
wallet.save() |
|
|
print_error("Wallet saved in '" + wallet.path) |
|
|
print "Wallet saved in '%s'"%wallet.config.path |
|
|
else: |
|
|
else: |
|
|
wallet.new_seed(None) |
|
|
wallet.new_seed(None) |
|
|
wallet.init_mpk( wallet.seed ) |
|
|
wallet.init_mpk( wallet.seed ) |
|
|