Decrease rating for stream 0

This commit is contained in:
Dmitri Bogomolov 2021-05-15 20:48:01 +03:00
parent 3a06263f27
commit a57358d80a
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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