diff options
Diffstat (limited to 'swarm/network/simulation/example_test.go')
-rw-r--r-- | swarm/network/simulation/example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/network/simulation/example_test.go b/swarm/network/simulation/example_test.go index 2a8116921..84b0634b4 100644 --- a/swarm/network/simulation/example_test.go +++ b/swarm/network/simulation/example_test.go @@ -36,7 +36,7 @@ import ( func ExampleSimulation_WaitTillHealthy() { sim := simulation.New(map[string]simulation.ServiceFunc{ "bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) { - addr := network.NewAddrFromNodeID(ctx.Config.ID) + addr := network.NewAddr(ctx.Config.Node()) hp := network.NewHiveParams() hp.Discovery = false config := &network.BzzConfig{ |