From 0a79490e2c8f500fa7f6e23c811ca4ef29606030 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 24 Jun 2017 12:21:42 +0200 Subject: [PATCH] Known nodes maximum configurable part 2 --- src/network/bmproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index 9b1ba08e..61cc53d3 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -317,7 +317,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker): peer = state.Peer(decodedIP, port) if peer in knownnodes.knownNodes[stream] and knownnodes.knownNodes[stream][peer] > seenTime: continue - if len(knownnodes.knownNodes[stream]) < 20000: + if len(knownnodes.knownNodes[stream]) < BMConfigParser().get("knownnodes", "maxnodes"): with knownnodes.knownNodesLock: knownnodes.knownNodes[stream][peer] = seenTime #knownnodes.knownNodes[stream][peer] = seenTime