tnetwork: avoid infinite loop if server headers conflict with checkpoints and server height is above max checkpoint - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9a8183f348f5b4b56efe8f27b24c7baf7c46e207 DIR parent 51ed8a998c0f80fe27a3c27c46e4ff12d875865b HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 25 Jun 2018 11:53:31 +0200 network: avoid infinite loop if server headers conflict with checkpoints and server height is above max checkpoint Diffstat: M lib/network.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/network.py b/lib/network.py t@@ -893,6 +893,9 @@ class Network(util.DaemonThread): interface.bad_header = header delta = interface.tip - height next_height = max(self.max_checkpoint(), interface.tip - 2 * delta) + if height == next_height: + self.connection_down(interface.server) + next_height = None elif interface.mode == 'binary': if chain: