diff options
author | Elad <theman@elad.im> | 2018-12-17 19:19:01 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-12-17 19:19:01 +0800 |
commit | 472c23a8015cd84b193d2d0efb4592a664de3c62 (patch) | |
tree | 2344bab40a7328567179ec889b2432039cd28cf4 /swarm/network/simulation/service.go | |
parent | d322c9d5504ad3fd4dfeb9dff29e92b35856042f (diff) | |
download | go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar.gz go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar.bz2 go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar.lz go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar.xz go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.tar.zst go-tangerine-472c23a8015cd84b193d2d0efb4592a664de3c62.zip |
p2p/simulation: move connection methods from swarm/network/simulation (#18323)
Diffstat (limited to 'swarm/network/simulation/service.go')
-rw-r--r-- | swarm/network/simulation/service.go | 2 |
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 } |