aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authoryahtoo <yahtoo.ma@gmail.com>2018-12-14 21:55:51 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-12-14 21:55:51 +0800
commitaad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3 (patch)
tree32478928682b550d78f309ebe023826ef43bb176 /p2p
parentfe26b2f366693bfd2cff71e81fa5512977affd7b (diff)
downloadgo-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar.gz
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar.bz2
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar.lz
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar.xz
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.tar.zst
go-tangerine-aad3c67a92cd4f3cc3a885fdc514ba2a7fb3e0a3.zip
p2p/discv5: don't hash findnode target in lookup against table (#18309)
Diffstat (limited to 'p2p')
-rw-r--r--p2p/discv5/net.go2
1 files changed, 1 insertions, 1 deletions
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
}