Skip to content

Commit

Permalink
Use only BUCKET_SIZE closest neighbors nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhartnett committed Nov 7, 2024
1 parent 14b4ef5 commit f997977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluffy/network/wire/portal_protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f997977

Please sign in to comment.