From 49f1a6860e44238b82fc0ea464d5879d53055918 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 14 Nov 2018 17:43:08 +0100 Subject: [PATCH] swarm/storage: Correct example kad diagram for non-counted empty bins --- 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 21cd4c4953..2fbb1a92b1 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -468,9 +468,9 @@ func (k *Kademlia) neighbourhoodDepth() (depth int) { // 0 abac ccde // 1 2a2a // 2 589f <--- nearest non-nn + // ============ DEPTH 3 =========== // 3 <--- don't count as empty bins // 4 <--- don't count as empty bins - // ============ DEPTH 5 =========== // 5 cbcb cdcd <---- furthest nn // 6 a1a2 b3c4 if b && i < depth {