electrum

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

commit fb878e1045a0a8f33213851c1778f5faa9ceff8b
parent fb0574c5a05426a6885ec91579c0138b606aff1b
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 28 Jul 2014 08:23:28 +0200

fix: catch server.version

Diffstat:
Mlib/interface.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -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 @@ -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: