From a57358d80adf28f40f28a7d12c1bf5c8af49a1ed Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sat, 15 May 2021 20:48:01 +0300 Subject: [PATCH] Decrease rating for stream 0 --- src/class_singleCleaner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/class_singleCleaner.py b/src/class_singleCleaner.py index 6c390fdf..dd471f9f 100644 --- a/src/class_singleCleaner.py +++ b/src/class_singleCleaner.py @@ -149,6 +149,9 @@ class singleCleaner(StoppableThread): connection.destination.host) # remove peers with same host and other ports from knownnodes for stream in connection.streams: + if stream == 0: # FIXME: stream 0 is a protocol violation + knownnodes.decreaseRating(connection.destination) + continue for node in [ node for node in knownnodes.knownNodes[stream] if node.host == connection.destination.host