1
0

separate address creation and subscribe

This commit is contained in:
ThomasV
2012-03-23 20:58:54 +01:00
parent 22a0fdd492
commit 9bfdcd7e16
2 changed files with 21 additions and 39 deletions

View File

@@ -136,8 +136,10 @@ if __name__ == '__main__':
wallet.seed = str(seed)
wallet.start_interface()
print "recovering wallet..."
wallet.init_mpk( wallet.seed ) # not encrypted at this point
wallet.synchronize()
wallet.init_mpk( wallet.seed )
wallet.start_interface()
thread.start_new_thread(wallet.run, ())
wallet.update()
if wallet.is_found():
wallet.fill_addressbook()
wallet.save()
@@ -146,6 +148,8 @@ if __name__ == '__main__':
print "found no history for this wallet"
else:
wallet.new_seed(None)
wallet.init_mpk( wallet.seed )
wallet.synchronize() # there is no wallet thread
wallet.save()
print "Your wallet generation seed is: " + wallet.seed
print "Please keep it in a safe place; if you lose it, you will not be able to restore your wallet."