Skip to content

Instantly share code, notes, and snippets.

View tpmccallum's full-sized avatar

Timothy McCallum tpmccallum

View GitHub Profile
@tpmccallum
tpmccallum / epn_5.md
Created February 1, 2018 23:12
epn_5
export PATH="$PATH:/usr/local/go/bin"
@tpmccallum
tpmccallum / epn_6.md
Created February 1, 2018 23:19
epn_6
which go
/usr/local/go/bin/go
go version
go version go1.9.3 linux/amd64
@tpmccallum
tpmccallum / epn_7.md
Last active February 2, 2018 00:52
epn_7
cd ~
gedit go-ethereum/consensus/ethash/consensus.go
@tpmccallum
tpmccallum / epn_8.md
Created February 2, 2018 00:54
epn_8
cd ~
cd go-ethereum
make geth
@tpmccallum
tpmccallum / epn_9.md
Created February 2, 2018 01:02
epn_9
cd ~
mkdir gethDataDir
geth account new --datadir ~/gethDataDir
@tpmccallum
tpmccallum / epn_10.md
Last active February 2, 2018 02:24
epn_10
{
	"config": {
		"chainId": 15,
		"homesteadBlock": 0,
		"eip155Block": 0,
		"eip158Block": 0
	},
	"difficulty": "1",
	"gasLimit": "2100000",
@tpmccallum
tpmccallum / epn_11.md
Last active February 2, 2018 02:04
epn_11
cd ~/gethDataDir
geth --datadir ~/gethDataDir/ init genesis.json
@tpmccallum
tpmccallum / epn_12.md
Last active February 2, 2018 02:11
epn_12
cd ~
geth --datadir ~/gethDataDir --networkid 15
@tpmccallum
tpmccallum / epn_13.md
Last active February 2, 2018 02:09
epn_13
cd ~
geth attach ipc:gethDataDir/geth.ipc
@tpmccallum
tpmccallum / epn_14.md
Last active February 2, 2018 02:30
epn_14
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