Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 2.15 KB

geth_run.md

File metadata and controls

34 lines (26 loc) · 2.15 KB

Run Geth

[ Intro ] -- [ Set Up RasPi ] -- [ Install Go ] -- [ Install Geth ] -- [ Run Geth ] -- [ FAQ ] -- [ Updates ]


Create a new account

The account consists of an encrypted private key and the corresponding public key/address, all of which are stored in ~/.ethereum by default

  • Create a new account
    geth --datadir /mnt/hdd/eth_data account new
    Enter a passphrase twice for your new account when asked. Make sure to remember this passphrase!!!
    3

Start syncing with the blockchain

  • "fast sync" algorithm which syncs pruned blockchain data
    geth --datadir /mnt/hdd/eth_data --syncmode=fast --cache=1024

After running this command, you should see messages as shown in the pic below.
4
After some initial synchronisation process, you should see a command line interface where you can interact with. For example:

  • To check synchronisation status
    eth.syncing This will give you current block number, and the highest block number being reported by your peers.

  • To stop geth console
    exit

OPTIONAL: Run Geth in the backgrouod (setting logging verbosity to 0)

  • geth --datadir /mnt/hdd/eth_data --verbosity 0

Find all Geth commands here

Sidenotes

  • Block synchronisation takes a few days so please be patient. Also expect hiccups while the node is catching up with the blocks. Imports might occasionally stop. Sometimes you might even run into runtime errors. During these times you will need to stop and restart the node.

  • In case where the blockchain database got corrupted, you would have to rebuild the block index. To do this, delete the blockchain data and start over. To avoid such headaches, I recommend downloading the whole blockchain onto a hard drive on a computer first, then copy the chaindata folder over onto the Pi.

  • If you have any questions, please reach out to me on Twitter @jim380, or on Telegram @jim380. Thank you very much for checking out.


Next: FAQ >>