First, install the required software:
- Open CMD (windows > run > type "cmd" > enter).
- Run
geth.exe --dev --ipcpath geth.ipc console
- on the CMD window, type
personal.newAccount()
to create a password for your default (etherbase) account - on the CMD window, type
miner.start()
. - open Mist.
- Open Terminal (Cmd + space > terminal.app)
- Run
geth --dev --ipcpath ~/Library/Ethereum/geth.ipc console
- on the Terminal, type
personal.newAccount()
to create a password for your default (etherbase) account - on the Terminal, type
miner.start()
. - open Mist
- Open your terminal of choice
- Run
geth --dev --ipcpath ~/.ethereum/geth.ipc console
- on your terminal, type
personal.newAccount()
to create a password for your default (etherbase) account - on your terminal, type
miner.start()
. - open Mist
That's it. You can use miner.start()
and miner.stop()
to control wether you computer will be generating blocks and validating your own transactions.
On Mist, change the network to Main Net (Develop > Network > Main net)
, terminate both Mist and Geth, and restart them.
Throw some feedback in the comments :)
Hi, the --dev flag and the private network are two concepts that I'm trying to understand. Could you please help me with the following.
I've installed geth in a Raspberry Pi 3. I want to make two nodes (accounts) in the same RPi interact in a private ethereum network. If I start both nodes without the --dev flag I've managed to connect them. However since my hardware is limited (1GB ram) I always get the "out of memory error" if i try to mine without the --dev flag. So for this reason i use the flag but when i do so I cant make both nodes to see each other. Is it because what I'm trying to do and the flag are mutually exclusive or am I missing some configuration?
I can tell that I am initializing both nodes with the same genesis file. I've been careful with the enode and port numbers. So I'm lost as to whats happening.
Thanks in advance.