This repository was archived by the owner on Oct 24, 2023. It is now read-only.
Repository navigation
Geth Testnet Configuration
James Carlyle edited this page Jan 20, 2022
·
7 revisions
{
"config": {
"chainId": 888,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"clique": {
"period": 5,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x61ad4c01",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000d19e492703fe21f9c26d7675a0e170b3690e6b2edadc65b1bdfae96f9cf04a8d49f3087ddd4a13b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"d19e492703fe21f9c26d7675a0e170b3690e6b2e": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"dadc65b1bdfae96f9cf04a8d49f3087ddd4a13b0": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas": null
}~/go/bin/bootnode -nodekey bootnode.key -verbosity 4 -addr 127.0.0.1:30301
Output:
enode://6791c3219031b1b733d1782fded16de3d6e329e8e83d0d0ef3f306b331b2d904607efca281915b05d5ade1e8702af230bb559d26f7a0e442c3f4193c20bdfa0d@127.0.0.1:0?discport=30301
rm -rf node-1/data/geth/
rm -rf node-1/data/history
~/go/bin/geth init obscuro.json --datadir node-1/data/
~/go/bin/geth
--datadir node-0/data
--syncmode full
--networkid 888
--mine --miner.threads 1 --unlock 0 --password node-0/data/password.txt --allow-insecure-unlock
--port 30303
--http --http.addr 127.0.0.1 --http.port 8083
--verbosity 3
--snapshot=false
--bootnodes "enode://6791c3219031b1b733d1782fded16de3d6e329e8e83d0d0ef3f306b331b2d904607efca281915b05d5ade1e8702af230bb559d26f7a0e442c3f4193c20bdfa0d@127.0.0.1:0?discport=30301"
console
This worked:
~/go/bin/geth
--datadir node-0/data
--syncmode full
--networkid 888
--mine --miner.threads 1 --unlock 0 --password node-0/data/password.txt --allow-insecure-unlock
--port 30303
--http --http.addr 127.0.0.1 --http.port 8083
--verbosity 3
--snapshot=true
--nodiscover
console
rm -rf node-1/data/geth/
rm -rf node-1/data/history
~/go/bin/geth init obscuro.json --datadir node-1/data/
~/go/bin/geth
--datadir node-1/data
--syncmode full
--networkid 888
--mine --miner.threads 1 --unlock 0 --password node-1/data/password.txt --allow-insecure-unlock
--port 30304
--http --http.addr 127.0.0.1 --http.port 8084
--verbosity 3
--snapshot=false
--bootnodes "enode://6791c3219031b1b733d1782fded16de3d6e329e8e83d0d0ef3f306b331b2d904607efca281915b05d5ade1e8702af230bb559d26f7a0e442c3f4193c20bdfa0d@127.0.0.1:0?discport=30301"
--ipcdisable
console
This worked:
~/go/bin/geth
--datadir node-1/data
--syncmode full
--networkid 888
--mine --miner.threads 1 --unlock 0 --password node-1/data/password.txt --allow-insecure-unlock
--port 30305
--http --http.addr 127.0.0.1 --http.port 8084
--verbosity 3
--snapshot=false
--nodiscover
console
Then:
admin.addPeer("enode::__node0__")