From f997977efccfb4d0ad72f82a9688af1b272ff6fe Mon Sep 17 00:00:00 2001 From: bhartnett <51288821+bhartnett@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:19:55 +0800 Subject: [PATCH] Use only BUCKET_SIZE closest neighbors nodes. --- fluffy/network/wire/portal_protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluffy/network/wire/portal_protocol.nim b/fluffy/network/wire/portal_protocol.nim index 4ee28bfff..7cb4bc766 100644 --- a/fluffy/network/wire/portal_protocol.nim +++ b/fluffy/network/wire/portal_protocol.nim @@ -1143,7 +1143,7 @@ proc contentLookup*( # `closestNodes` holds the k closest nodes to target found, sorted by distance # Unvalidated nodes are used for requests as a form of validation. var closestNodes = - p.routingTable.neighbours(targetId, BUCKET_SIZE * 2, seenOnly = false) + p.routingTable.neighbours(targetId, BUCKET_SIZE, seenOnly = false) # Shuffling the order of the nodes in order to not always hit the same node # first for the same request.