First node setup

First, the geth client needs to be started on the first node using the following command:

$ geth --datadir .ethereum/privatenet/ --networkid 786 --maxpeers 5 --rpc --rpcapi web3,eth,debug,personal,net --rpcport 9001 --rpccorsdomain "*" -- port 30301 --identity "drequinox"  

This will give the output similar to the following:

geth on first node

Once this is started up, it should be kept running, and another geth instance should be started from the Raspberry Pi node.

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.