mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discv5: Fix target id repeat hash error
This commit is contained in:
parent
4e6f53ac33
commit
b883d5eab1
1 changed files with 1 additions and 1 deletions
|
|
@ -800,7 +800,7 @@ func (n *nodeNetGuts) startNextQuery(net *Network) {
|
||||||
func (q *findnodeQuery) start(net *Network) bool {
|
func (q *findnodeQuery) start(net *Network) bool {
|
||||||
// Satisfy queries against the local node directly.
|
// Satisfy queries against the local node directly.
|
||||||
if q.remote == net.tab.self {
|
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
|
q.reply <- closest.entries
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue