Skip to content

Commit aad3c67

Browse files
yahtoofjl
authored andcommitted
p2p/discv5: don't hash findnode target in lookup against table (#18309)
1 parent fe26b2f commit aad3c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/discv5/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ func (n *nodeNetGuts) startNextQuery(net *Network) {
800800
func (q *findnodeQuery) start(net *Network) bool {
801801
// Satisfy queries against the local node directly.
802802
if q.remote == net.tab.self {
803-
closest := net.tab.closest(crypto.Keccak256Hash(q.target[:]), bucketSize)
803+
closest := net.tab.closest(q.target, bucketSize)
804804
q.reply <- closest.entries
805805
return true
806806
}

0 commit comments

Comments
 (0)