From e6fc61d23648f0a86dc026e380b9df6c10006997 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sat, 19 Aug 2023 04:14:05 +0300 Subject: [PATCH] Try not to add core nodes to pool --- minode/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minode/connection.py b/minode/connection.py index a8deae9..9f9c70f 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -411,7 +411,8 @@ class ConnectionBase(threading.Thread): addr = message.Addr.from_message(m) logging.debug('%s:%s -> %s', self.host_print, self.port, addr) for a in addr.addresses: - shared.unchecked_node_pool.add((a.host, a.port)) + if (a.host, a.port) not in shared.core_nodes: + shared.unchecked_node_pool.add((a.host, a.port)) def _request_objects(self): if self.vectors_to_get and len(self.vectors_requested) < 100: