Try not to add core nodes to pool

This commit is contained in:
Lee Miller 2023-08-19 04:14:05 +03:00
parent 6d0739f14c
commit 72e7100a75
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -411,6 +411,7 @@ 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:
if (a.host, a.port) not in shared.core_nodes:
shared.unchecked_node_pool.add((a.host, a.port))
def _request_objects(self):