Browse Source
network: avoid infinite loop if server headers conflict with checkpoints and server height is above max checkpoint
3.2.x
SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
3 additions and
0 deletions
-
lib/network.py
|
|
@ -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: |
|
|
|