mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
swarm/kademlia: change overrun in discovery simulation PR due to rebasing
This commit is contained in:
parent
74828b81ae
commit
b8d878a54d
1 changed files with 1 additions and 5 deletions
|
|
@ -263,14 +263,10 @@ func (k *Kademlia) SuggestPeer() (a OverlayAddr, o int, want bool) {
|
||||||
if po >= depth {
|
if po >= depth {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
ok := f(func(val pot.Val, _ int) bool {
|
return f(func(val pot.Val, _ int) bool {
|
||||||
a = k.callable(val)
|
a = k.callable(val)
|
||||||
return a == nil
|
return a == nil
|
||||||
})
|
})
|
||||||
if !ok {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
})
|
||||||
// found a candidate
|
// found a candidate
|
||||||
if a != nil {
|
if a != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue