aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/simulation/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/network/simulation/service.go')
-rw-r--r--swarm/network/simulation/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/network/simulation/service.go b/swarm/network/simulation/service.go
index 819602e9e..7dd4dc6d8 100644
--- a/swarm/network/simulation/service.go
+++ b/swarm/network/simulation/service.go
@@ -39,7 +39,7 @@ func (s *Simulation) Service(name string, id enode.ID) node.Service {
// RandomService returns a single Service by name on a
// randomly chosen node that is up.
func (s *Simulation) RandomService(name string) node.Service {
- n := s.RandomUpNode()
+ n := s.Net.GetRandomUpNode().Node.(*adapters.SimNode)
if n == nil {
return nil
}