Skip to content

Instantly share code, notes, and snippets.

@willitscale
Last active December 10, 2017 07:56
Show Gist options
  • Save willitscale/825fb2422a7ed429c360ca2fbc3138de to your computer and use it in GitHub Desktop.
Save willitscale/825fb2422a7ed429c360ca2fbc3138de to your computer and use it in GitHub Desktop.
Custom Test Network for Ethereum
#!/bin/sh
geth attach ~/testnet/data/geth.ipc
{
"nonce": "0x0000000000000042",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x400",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {
}
}
#!/bin/sh
geth \
--identity "TestNet" \
--dev \
--rpc \
--rpcport "8000" \
--rpcaddr "192.168.1.13" \
--rpccorsdomain "*" \
--datadir "~/testnet/data" \
--port "30303" \
--nodiscover \
#--ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" \
--rpcapi "db,eth,net,web3" \
--autodag \
--networkid 1900 \
--nat "any" \
--mine
init "~/testnet/CustomGenesis.json" \
console
for(var i in personal.listAccounts) {
personal.unlockAccount(personal.listAccounts[i], "testtest");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment