From 1e42e0679a32b2f404e8367b1edada4f4d64d892 Mon Sep 17 00:00:00 2001
From: Thomas Jay Rush <jrush@quickblocks.io>
Date: Wed, 9 Feb 2022 17:11:47 -0500
Subject: [PATCH] Updating README to include running two instances on the same
 machine. (#3460)

* Updating README to include running two instances on the same machine.

* Updating formatting
---
 README.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/README.md b/README.md
index 980b0b2929..ae6b4a0024 100644
--- a/README.md
+++ b/README.md
@@ -157,6 +157,27 @@ where `<ip address>` is either localhost or the IP address of the device running
 
 Erigon has been tested with Lighthouse however all other clients that support JSON-RPC should also work.
     
+### Multiple Instances / One Machine
+
+Here's an example of running multiple instances of Erigon against different chains on the same machine:
+
+Against mainnet:
+
+```
+./build/bin/erigon    --datadir "<your-mainnet-data-path>" --private.api.addr=localhost:9091 -port 30303 --chain mainnet
+./build/bin/rpcdaemon --datadir "<your-mainnet-data-path>" --private.api.addr=localhost:9091 --http.api=eth,debug,net,trace,web3,erigon --http.port 8546
+```
+
+As usual, use the same `datadir` and `private.api.addr` for both Erigon and RPC. Explicitly specify the chain and the other ports to make things clearer. Quote your path if it has spaces.
+
+Against rinkeby:
+
+```
+./build/bin/erigon    --datadir "<your-rinkeby-data-path>" --private.api.addr=localhost:9092 -port 30304 --chain rinkeby
+./build/bin/rpcdaemon --datadir "<your-rinkeby-data-path>" --private.api.addr=localhost:9092 --http.api=eth,debug,net,trace,web3,erigon --http.port 8547
+```
+
+Same command, but use different `datadir` and different ports throughout.
 
 ### Dev Chain
 <code> 🔬 Detailed explanation is [DEV_CHAIN](/DEV_CHAIN.md).</code>
-- 
GitLab