From aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3 Mon Sep 17 00:00:00 2001 From: yahtoo Date: Fri, 14 Dec 2018 21:55:51 +0800 Subject: [PATCH] p2p/discv5: don't hash findnode target in lookup against table (#18309) --- p2p/discv5/net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go index cdeb28dd5..55e596755 100644 --- a/p2p/discv5/net.go +++ b/p2p/discv5/net.go @@ -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 }