docs: add --authrpc.port flag to instructions to run multiple instances on the same host (#4994)

* Multiple instances: add `--authrpc.port` flag

Fix #4993.

* Fix instructions for running multiple instance in one machine

* Refactor: reorganize the order of the flags
This commit is contained in:
Henrique Barcelos 2022-08-11 01:37:02 -03:00 committed by GitHub
parent d643da3db8
commit f868bf6678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,15 +196,15 @@ where `<erigon address>` is either `localhost` or the IP address of the device r
### Multiple Instances / One Machine
Define 5 flags to avoid conflicts: `--datadir --port --http.port --torrent.port --private.api.addr`. Example of multiple chains on the same machine:
Define 6 flags to avoid conflicts: `--datadir --port --http.port --authrpc.port --torrent.port --private.api.addr`. Example of multiple chains on the same machine:
```
# mainnet
./build/bin/erigon --datadir="<your_mainnet_data_path>" --chain=mainnet --port=30303 --http.port=8545 --torrent.port=42069 --private.api.addr=127.0.0.1:9090 --http --ws --http.api=eth,debug,net,trace,web3,erigon
./build/bin/erigon --datadir="<your_mainnet_data_path>" --chain=mainnet --port=30303 --http.port=8545 --authrpc.port=8551 --torrent.port=42069 --private.api.addr=127.0.0.1:9090 --http --ws --http.api=eth,debug,net,trace,web3,erigon
# rinkeby
./build/bin/erigon --datadir="<your_rinkeby_data_path>" --chain=rinkeby --port=30304 --http.port=8546 --torrent.port=42068 --private.api.addr=127.0.0.1:9091 --http --ws --http.api=eth,debug,net,trace,web3,erigon
./build/bin/erigon --datadir="<your_rinkeby_data_path>" --chain=rinkeby --port=30304 --http.port=8546 --authrpc.port=8552 --torrent.port=42068 --private.api.addr=127.0.0.1:9091 --http --ws --http.api=eth,debug,net,trace,web3,erigon
```
Quote your path if it has spaces.