diff --git a/src/network/knownnodes.py b/src/network/knownnodes.py index 960c2da4..f23fcf7e 100644 --- a/src/network/knownnodes.py +++ b/src/network/knownnodes.py @@ -136,6 +136,9 @@ def addKnownNode(stream, peer, lastseen=None, is_self=False): except KeyError: pass except TypeError: + # don't update expired node if have enough nodes in that stream + if len(knownNodes[stream]) > 64: + return rating = -0.2 else: return