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,10 @@ import (
// BucketKeyKademlia key. This allows to use WaitTillHealthy to block until
// all nodes have the their Kadmlias healthy.
func ExampleSimulation_WaitTillHealthy() {
log.Error("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
return
sim := simulation.New(map[string]simulation.ServiceFunc{
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
addr := network.NewAddr(ctx.Config.Node())