0

Is it possible to create 2 geth instance on single PC? Both are connected the private blockchain?

When I connect a node to the private blockchain,it must sync with the blockchain by downloading all blocks upto latest one.Is this possible to do this on a 2nd node instance in same PC?

If not, what is the reason behind this?

I am getting the following error while I tried to run two instance.

First Node geth --identity "TestNode1" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <data-path-1> --port "30303" --rpcapi db,eth,net,web3,personal,miner --networkid 987 console 2>> logfile_1

Second Node geth --identity "TestNode2" --rpcport "8545" --rpcaddr "xxx.xxx.xx.xx" --ipcdisable --rpccorsdomain "*" --datadir <data-path-2> --port "30304" --rpcapi db,eth,net,web3,personal,miner --networkid 987 console 2>> logfile_2

Error: INFO [10-26|09:30:33.099] Block synchronisation started WARN [10-26|09:30:33.107] Node data write error err="state node 255a57…77b997 failed with all peers (1 tries, 1 peers)" WARN [10-26|09:30:33.107] Synchronisation failed, retrying err="state node 255a57…77b997 failed with all peers (1 tries, 1 peers)"

Pt.AR
  • 112
  • 9

2 Answers2

0

You can do this with separate --datadir and difference --port on the same PC

Tony Dang
  • 2,151
  • 2
  • 9
  • 16
0

Why don't you start another VM on your pc and download it there? This way you can keep things "cleaner".

OWADVL
  • 290
  • 1
  • 11