Last active
December 10, 2017 07:56
-
-
Save willitscale/825fb2422a7ed429c360ca2fbc3138de to your computer and use it in GitHub Desktop.
Custom Test Network for Ethereum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
geth attach ~/testnet/data/geth.ipc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nonce": "0x0000000000000042", | |
"timestamp": "0x0", | |
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"extraData": "0x0", | |
"gasLimit": "0x8000000", | |
"difficulty": "0x400", | |
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"coinbase": "0x3333333333333333333333333333333333333333", | |
"alloc": { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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