From e0ac46058b1cba0113da7c444a924c3944c2d364 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 4 Dec 2018 18:04:37 +0400 Subject: [PATCH] swarm/network: eachConn bugfix (base address fixed) --- swarm/network/kademlia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go index a8ecaa4be4..497e070f70 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -398,7 +398,7 @@ func (k *Kademlia) eachConn(base []byte, o int, f func(*Peer, int, bool) bool) { if len(base) == 0 { base = k.base } - depth := depthForPot(k.conns, k.MinProxBinSize, k.base) + depth := depthForPot(k.conns, k.MinProxBinSize, base) k.conns.EachNeighbour(base, pof, func(val pot.Val, po int) bool { if po > o { return true