mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
p2p/sim: fix comment
This commit is contained in:
parent
d0e104b280
commit
544d0a99cc
1 changed files with 2 additions and 2 deletions
|
|
@ -105,8 +105,8 @@ func (e *ExecAdapter) NewNode(config *NodeConfig) (Node, error) {
|
||||||
conf.Stack.P2P.NAT = nil
|
conf.Stack.P2P.NAT = nil
|
||||||
conf.Stack.NoUSB = true
|
conf.Stack.NoUSB = true
|
||||||
|
|
||||||
// listen on a random localhost port (we'll get the actual port after
|
// listen on a localhost port, which we set when we
|
||||||
// starting the node through the RPC admin.nodeInfo method)
|
// initialise NodeConfig (usually a random port)
|
||||||
conf.Stack.P2P.ListenAddr = fmt.Sprintf("127.0.0.1:%d", config.Port)
|
conf.Stack.P2P.ListenAddr = fmt.Sprintf("127.0.0.1:%d", config.Port)
|
||||||
|
|
||||||
node := &ExecNode{
|
node := &ExecNode{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue