Skip to content

Commit

Permalink
p2p/discv5: don't hash findnode target in lookup against table (#18309)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahtoo authored and fjl committed Dec 14, 2018
1 parent fe26b2f commit aad3c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discv5/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ func (n *nodeNetGuts) startNextQuery(net *Network) {
func (q *findnodeQuery) start(net *Network) bool {
// Satisfy queries against the local node directly.
if q.remote == net.tab.self {
closest := net.tab.closest(crypto.Keccak256Hash(q.target[:]), bucketSize)
closest := net.tab.closest(q.target, bucketSize)
q.reply <- closest.entries
return true
}
Expand Down

0 comments on commit aad3c67

Please sign in to comment.