electrum

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

commit f4d4962b1d23f42a7c6bb6d489602661ede89560
parent bbf64b675faae8da7d62e04ceaa6e260ca24c51a
Author: thomasv <thomasv@gitorious>
Date:   Wed,  8 Feb 2012 16:22:51 +0100

simplification

Diffstat:
Mclient/gui.py | 2--
Mclient/interface.py | 10++++------
2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/client/gui.py b/client/gui.py @@ -865,8 +865,6 @@ class BitcoinGUI: self.show_message(e.message) return - self.update_session = True # we created a new change address - status, msg = self.wallet.sendtx( tx ) if status: self.show_message( "payment sent.\n" + msg ) diff --git a/client/interface.py b/client/interface.py @@ -162,7 +162,6 @@ class Interface: try: self.is_connected = False self.new_session(wallet.all_addresses(), wallet.electrum_version) - self.update_session = False except socket.error: print "Not connected" time.sleep(self.poll_interval()) @@ -174,11 +173,6 @@ class Interface: while True: try: - if self.is_connected and self.update_session: - self.update_session( wallet.all_addresses() ) - self.update_session = False - - # define a method to update the list if self.update_wallet(wallet): self.update_session( wallet.all_addresses() ) @@ -190,6 +184,10 @@ class Interface: except socket.gaierror: self.is_connected = False break + except socket.error: + print "socket.error" + self.is_connected = False + break except: self.is_connected = False print "error"