electrum

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

commit f1a7473ae2d12996e92b3a7975c969d5e1cd4d92
parent 4cbee7554f45ab4f7eb63b2a14b5191e290f4f24
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  4 Nov 2012 11:08:05 +0100

do not use old servers

Diffstat:
Mlib/interface.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -105,7 +105,11 @@ class Interface(threading.Thread): ports.append((v[0], v[1:])) if re.match("v(.?)+", v): version = v[1:] - if ports and version: + try: + is_recent = float(version)>=0.5 + except: + is_recent = False + if ports and is_recent: servers.append((host, ports)) self.servers = servers self.trigger_callback('peers')