commit 02eece2c4c1cae13a5062b51b4d3563879f922b6 parent 39a85767a3554df5ab328de1e13a8133185bebd7 Author: ThomasV <thomasv@gitorious> Date: Sun, 4 Nov 2012 21:12:08 +0100 fix CLI restore Diffstat:
M | electrum | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/electrum b/electrum @@ -259,7 +259,15 @@ if __name__ == '__main__': wallet.seed = str(seed) wallet.init_mpk( wallet.seed ) if not options.offline: + + interface = Interface(config) + interface.start() + wallet.interface = interface WalletSynchronizer(wallet, config).start() + + verifier = WalletVerifier(interface, config) + wallet.set_verifier(verifier) + print "Recovering wallet..." wallet.up_to_date_event.clear() wallet.up_to_date = False @@ -267,12 +275,12 @@ if __name__ == '__main__': if wallet.is_found(): print "Recovery successful" else: - print_error("Warning: Found no history for this wallet") + print "Warning: Found no history for this wallet" else: wallet.synchronize() wallet.fill_addressbook() wallet.save() - print_error("Wallet saved in '" + wallet.path) + print "Wallet saved in '%s'"%wallet.config.path else: wallet.new_seed(None) wallet.init_mpk( wallet.seed )