electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4b985ab535175d85f74e3643ac9d2d5473cde658
parent 5669e2887b7c719310f337071e35a468db78ca5b
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  3 Apr 2012 19:03:58 +0200

check protocol too

Diffstat:
Mclient/electrum4a.py | 15++++++---------
Mclient/wallet.py | 1+
2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/client/electrum4a.py b/client/electrum4a.py @@ -230,8 +230,6 @@ settings_layout = """<?xml version="1.0" encoding="utf-8"?> -droid.addOptionsMenuItem("Settings","settings",None,"") -droid.addOptionsMenuItem("Quit","quit",None,"") def show_balance(): @@ -303,12 +301,16 @@ droid.dialogDismiss() droid.vibrate() +def add_menu(): + droid.addOptionsMenuItem("Settings","settings",None,"") + droid.addOptionsMenuItem("Quit","quit",None,"") + +add_menu() -def main_loop(): +def main_loop(): droid.fullShow(main_layout) show_balance() - out = None while out is None: @@ -340,7 +342,6 @@ def main_loop(): # if event["data"]=="destroy": # out = 'exit' - #droid.fullDismiss() return out def payto_loop(): @@ -389,7 +390,6 @@ def payto_loop(): # if event["data"]=="destroy": # out = 'main' - #droid.fullDismiss() return out @@ -414,9 +414,6 @@ def history_loop(): # if event["data"]=="destroy": # out = 'main' - #droid.fullQuery() - #print "Data entered =",droid.fullQueryDetail("editText1").result - #droid.fullDismiss() return out def server_dialog(plist): diff --git a/client/wallet.py b/client/wallet.py @@ -298,6 +298,7 @@ class Wallet: # raise an error if the format isnt correct a,b,c = server.split(':') b = int(b) + assert c in ['t','h','n'] # set the server if server != self.server: self.server = server