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{