From 142fe1adc581308b2d80a54d0f66c0bc75f6c189 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sat, 15 May 2021 21:22:02 +0300 Subject: [PATCH] Warning 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 dd471f9f..9dd77dcb 100644 --- a/src/class_singleCleaner.py +++ b/src/class_singleCleaner.py @@ -150,6 +150,9 @@ class singleCleaner(StoppableThread): # 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 + self.logger.warning( + 'Found stream 0 for node %s:%i', + connection.destination) knownnodes.decreaseRating(connection.destination) continue for node in [