So I downloaded the Ethereum Wallet
I know you can use a custom directory by running geth first with the datadir flag set up, and then launching the wallet. But besides a custom directory, I want to use a private chain.
I'm geth on a private chain like this:
geth --datadir ./genesis -verbosity 6 --port 30301 --rpcport 8102 --genesis ./genesis.json --networkid 321 --nodiscover --maxpeers 3 console
And it works well. But upon launching the wallet, it starts syncing with the actual Ethereum blockchain of 900,000 blocks.
Is there anything else I need to do so the Wallet uses the geth instance with the private chain?
Best Answer
When you change the datadir using the
--datadir
flag you also change the IPC path that the Ethereum Wallet uses to communicate with Geth. When the wallet doesn't detect the socket it assumes Geth is not running and launches the build in one.You can fix this by using the
--ipcpath
to specify where the IPC socket should be created. If you run Geth withgeth --help
you will see the default path for your OS printed and you can copy and paste it to supply it to Geth.