export PATH="$PATH:/usr/local/go/bin"
which go
/usr/local/go/bin/go
go version
go version go1.9.3 linux/amd64
cd ~
gedit go-ethereum/consensus/ethash/consensus.go
cd ~
cd go-ethereum
make geth
cd ~
mkdir gethDataDir
geth account new --datadir ~/gethDataDir
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "1",
"gasLimit": "2100000",
cd ~/gethDataDir
geth --datadir ~/gethDataDir/ init genesis.json
cd ~
geth --datadir ~/gethDataDir --networkid 15
cd ~
geth attach ipc:gethDataDir/geth.ipc
web3.eth.accounts
web3.eth.getBalance(web3.eth.accounts[0])
web3.eth.getBalance(web3.eth.accounts[1])
web3.eth.getBalance(web3.eth.accounts[2])
web3.eth.coinbase
web3.eth.mining