aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/simulation/connect.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/network/simulation/connect.go')
-rw-r--r--swarm/network/simulation/connect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/simulation/connect.go b/swarm/network/simulation/connect.go
index 3fe82052b..3d0f6cb3f 100644
--- a/swarm/network/simulation/connect.go
+++ b/swarm/network/simulation/connect.go
@@ -54,7 +54,7 @@ func (s *Simulation) ConnectToLastNode(id discover.NodeID) (err error) {
// ConnectToRandomNode connects the node with provieded NodeID
// to a random node that is up.
func (s *Simulation) ConnectToRandomNode(id discover.NodeID) (err error) {
- n := s.randomUpNode(id)
+ n := s.RandomUpNode(id)
if n == nil {
return ErrNodeNotFound
}
@@ -135,7 +135,7 @@ func (s *Simulation) ConnectNodesStar(id discover.NodeID, ids []discover.NodeID)
return nil
}
-// ConnectNodesStar connects all nodes in a star topology
+// ConnectNodesStarPivot connects all nodes in a star topology
// with the center at already set pivot node.
// If ids argument is nil, all nodes that are up will be connected.
func (s *Simulation) ConnectNodesStarPivot(ids []discover.NodeID) (err error) {