tfix: catch server.version - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit fb878e1045a0a8f33213851c1778f5faa9ceff8b (DIR) parent fb0574c5a05426a6885ec91579c0138b606aff1b (HTM) Author: ThomasV <thomasv@gitorious> Date: Mon, 28 Jul 2014 08:23:28 +0200 fix: catch server.version Diffstat: M lib/interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- (DIR) diff --git a/lib/interface.py b/lib/interface.py t@@ -105,6 +105,10 @@ class Interface(threading.Thread): if queue is None: queue = self.response_queue + if method == 'server.version': + self.server_version = result + return + else: queue = self.response_queue # notification t@@ -128,10 +132,6 @@ class Interface(threading.Thread): queue.put((self, {'method':method, 'params':params, 'result':result, 'id':_id})) - def on_version(self, i, result): - self.server_version = result - - def start_tcp(self): if self.proxy is not None: