electrum

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

commit 8e55fe5f910f1ae26884f70a6c4608b8d09f7bad
parent 61a95a4239e20d41aef60e4c035f9ed2326f4b81
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun,  1 Jul 2018 04:52:01 +0200

network: disconnect from server if headers sub encounters error

we need at least e-x 1.3 since 1900e58e88010eef0b4b88ec13175311c50f91a9
for older e-x, we get stuck in infinite "synchronizing"...

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

diff --git a/lib/network.py b/lib/network.py @@ -592,6 +592,10 @@ class Network(util.DaemonThread): elif method == 'blockchain.headers.subscribe': if error is None: self.on_notify_header(interface, result) + else: + # no point in keeping this connection without headers sub + self.connection_down(interface.server) + return elif method == 'server.peers.subscribe': if error is None: self.irc_servers = parse_servers(result)