swarm/network: Correct neighborhood depth (#18066)

This commit is contained in:
lash
2018-11-26 17:13:59 +01:00
committed by Anton Evangelatov
parent bba5fd8192
commit 1cd007ecae
12 changed files with 209 additions and 37 deletions

View File

@@ -33,6 +33,7 @@ var BucketKeyKademlia BucketKey = "kademlia"
// WaitTillHealthy is blocking until the health of all kademlias is true.
// If error is not nil, a map of kademlia that was found not healthy is returned.
// TODO: Check correctness since change in kademlia depth calculation logic
func (s *Simulation) WaitTillHealthy(ctx context.Context, kadMinProxSize int) (ill map[enode.ID]*network.Kademlia, err error) {
// Prepare PeerPot map for checking Kademlia health
var ppmap map[string]*network.PeerPot