Make it clear that the default port for ETH2 is 9000 udp/tcp (#2421)
* Add default port info * Add default port info * Edit CLI and docs to reflect 9000 port * Apply suggestions from code review Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
This commit is contained in:
parent
3743df6434
commit
895fe4baf1
|
@ -154,12 +154,12 @@ type
|
||||||
|
|
||||||
tcpPort* {.
|
tcpPort* {.
|
||||||
defaultValue: defaultEth2TcpPort
|
defaultValue: defaultEth2TcpPort
|
||||||
desc: "Listening TCP port for Ethereum LibP2P traffic"
|
desc: "Listening TCP port for Ethereum LibP2P traffic, the default is 9000"
|
||||||
name: "tcp-port" }: Port
|
name: "tcp-port" }: Port
|
||||||
|
|
||||||
udpPort* {.
|
udpPort* {.
|
||||||
defaultValue: defaultEth2TcpPort
|
defaultValue: defaultEth2TcpPort
|
||||||
desc: "Listening UDP port for node discovery"
|
desc: "Listening UDP port for node discovery, default is 9000"
|
||||||
name: "udp-port" }: Port
|
name: "udp-port" }: Port
|
||||||
|
|
||||||
maxPeers* {.
|
maxPeers* {.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Command line options
|
# Command line options
|
||||||
|
|
||||||
You can pass any `nimbus_beacon_node` options to the `pyrmont` and `mainnet` scripts. For example, if you wanted to launch Nimbus on mainnet with a different base port, say `9100`, you would run:
|
You can pass any `nimbus_beacon_node` options to the `pyrmont` and `mainnet` scripts. For example, if you wanted to launch Nimbus on mainnet with different base ports than the default `9000/udp` and `9000/tcp`, say `9100/udp` and `9100/tcp`, you would run:
|
||||||
|
|
||||||
```
|
```
|
||||||
./run-mainnet-beacon-node.sh --tcp-port=9100 --udp-port=9100
|
./run-mainnet-beacon-node.sh --tcp-port=9100 --udp-port=9100
|
||||||
|
@ -44,8 +44,8 @@ The following options are available:
|
||||||
addresses.
|
addresses.
|
||||||
--listen-address Listening address for the Ethereum LibP2P and Discovery v5
|
--listen-address Listening address for the Ethereum LibP2P and Discovery v5
|
||||||
traffic.
|
traffic.
|
||||||
--tcp-port Listening TCP port for Ethereum LibP2P traffic.
|
--tcp-port Listening TCP port for Ethereum LibP2P traffic, the default is 9000
|
||||||
--udp-port Listening UDP port for node discovery.
|
--udp-port Listening UDP port for node discovery, default is 9000
|
||||||
--max-peers The maximum number of peers to connect to.
|
--max-peers The maximum number of peers to connect to.
|
||||||
--nat Specify method to use for determining public address. Must be
|
--nat Specify method to use for determining public address. Must be
|
||||||
one of: any, none, upnp, pmp, extip:<IP>.
|
one of: any, none, upnp, pmp, extip:<IP>.
|
||||||
|
@ -87,4 +87,3 @@ Available sub-commands:
|
||||||
|
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue