From 544d0a99cc00b1afe0ed690d77114985d5775cdd Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 7 Feb 2018 13:07:50 +0100 Subject: [PATCH] p2p/sim: fix comment --- p2p/simulations/adapters/exec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go index 808383939b..f34ac33043 100644 --- a/p2p/simulations/adapters/exec.go +++ b/p2p/simulations/adapters/exec.go @@ -105,8 +105,8 @@ func (e *ExecAdapter) NewNode(config *NodeConfig) (Node, error) { conf.Stack.P2P.NAT = nil conf.Stack.NoUSB = true - // listen on a random localhost port (we'll get the actual port after - // starting the node through the RPC admin.nodeInfo method) + // listen on a localhost port, which we set when we + // initialise NodeConfig (usually a random port) conf.Stack.P2P.ListenAddr = fmt.Sprintf("127.0.0.1:%d", config.Port) node := &ExecNode{