Skip to content

Commit

Permalink
Revert "bugfix: Decrease the number of buckets in kademlia for a fast…
Browse files Browse the repository at this point in the history
…er peer discovery"

This reverts commit 0499f20.
  • Loading branch information
wizeguyy committed Sep 21, 2023
1 parent 74304d2 commit 9617a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discover/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
// We keep buckets for the upper 1/15 of distances because
// it's very unlikely we'll ever encounter a node that's closer.
hashBits = len(common.Hash{}) * 8
nBuckets = hashBits / 15 // Number of buckets
nBuckets = hashBits // Number of buckets
bucketMinDistance = hashBits - nBuckets // Log distance of closest bucket

// IP address limits.
Expand Down

0 comments on commit 9617a15

Please sign in to comment.