1
0

wallet recovery: use static methods

This commit is contained in:
ThomasV
2012-02-14 09:52:03 +01:00
parent 0524e5ddd1
commit 7f30573027
4 changed files with 227 additions and 101 deletions

View File

@@ -60,16 +60,23 @@ if __name__ == '__main__':
import gui
interface.get_servers()
gui = gui.ElectrumGui(wallet)
try:
found = wallet.read()
if not found:
gui.restore_create_dialog(wallet)
found = gui.restore_or_create()
except BaseException, e:
gui.show_message(e.message)
import traceback
traceback.print_exc(file=sys.stdout)
#gui.show_message(e.message)
exit(1)
gui = gui.BitcoinGUI(wallet)
if not found: exit(1)
interface.start(wallet)
gui.main()
sys.exit(0)
if re.match('^bitcoin:', cmd):