[Ethereum] Private blockchain for production

private-blockchain

Even though it might be a bit soon for use in production, but all I find about setting up a private blockchain seems to be for testing.

But the fact we have a genesis.json should mean that anyone has the freedom to make their own ethereum blockchain.

The only thing that is not clear, is how the chain will connect to others. As I understand it will look in the local network first, but how can I limit the first node from connection to just any node?

I understand that only nodes with the same genesis block will join in, but I would want at least some initial control over how it propagates.

Best Answer

geth --networkid 1234 --ipcpath /home/roland/.ethereum/geth.ipc --datadir /home/roland/.ethereum/testnet

It's the networkid, it will indentify your network and only nodes with the same id will join the network.