1

I wonder if i can create my own private cluster as it can be done with Geth for development & test purposes : https://github.com/ethereum/go-ethereum/wiki/Setting-up-private-network-or-local-cluster#local-cluster

I gave shot by running multiple Ganache on same PC. But obviously failed to run as it tried to access port that is already taken by previous one.

3

You can run multiple instances of ganache locally. You'll need to specify a dedicated port for each one, see -p parameter (https://github.com/trufflesuite/ganache-cli).

However, you'll not be able to connect these instances to form a local cluster. Each process will run independently an own chain. It's not what it was designed for.

| improve this answer | |
  • Thanks. I will continue my distributed app development on undistributed Ganache. – Kerem atam Jun 19 '18 at 12:40
  • Wouldn't it be possible to connect them, when the same genesis.json was used? – pubkey Jun 19 '18 at 13:31
  • 2
    @pubkey genesis.json is not for connection but it is more about running on same chain. If Ganache doesnt provide any p2p node networking capability; nodes can not listen eachother and synch for the latest mined blocks. – Kerem atam Jun 19 '18 at 15:07
0

you can run multiple instance using different ports. ganache-cli -p 8546 and also you can fork currently running client to another client. ganace-cli -p 8545 -f http://localhost:8546

more:How to fork Ethereum from the current state?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.