Open youngqqcn opened 2 years ago
get block 34523 at node0:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x1",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e757800000000000000e800b7cc1a0efcf18d3ac47a73f89e4c16993f11156a99e5df283c69d308a3d70c878c87b8f3a8572c411b8f2af31f2486ef2967f681f3ee5724726bb59dbb8b00",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x1ffe6a9110016adea26eaccc794e4fca9361c348a11306d8a3211b5e39a6594c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x0d80b670b2d44017468ccc75787ea017678c6f72",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0x149d6b521601ce5243fb5c77b0cb8dff833971283d80e08ffd12740a8ee8cf2d",
"timestamp": "0x6305c10f",
"totalDifficulty": "0x10d77",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
get block 34523 at node2 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x2",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e7578000000000000007e1701cc02888a7e501530dc399f2118184e9bde826d34ac159f76b13ab9ee7a299a2a8ef4d2b072252ca7fc68023138fafd802361eab7c3eb0b8b5099bc296a01",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x04a907ebb763452f484cb2d831d01ec4e80b219ec11da1b68231027a048c5c1c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0xc20001631404c81d19e0b5b5aa4d30d45ed793d0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0xfd1f9ab400c2633e485ee5170c5bd3241c112ebc146cc3529793ca8243f12bbb",
"timestamp": "0x6305c0f3",
"totalDifficulty": "0x10d78",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
get block 34523 at node1 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x1",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e757800000000000000e800b7cc1a0efcf18d3ac47a73f89e4c16993f11156a99e5df283c69d308a3d70c878c87b8f3a8572c411b8f2af31f2486ef2967f681f3ee5724726bb59dbb8b00",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x1ffe6a9110016adea26eaccc794e4fca9361c348a11306d8a3211b5e39a6594c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x0d80b670b2d44017468ccc75787ea017678c6f72",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0x149d6b521601ce5243fb5c77b0cb8dff833971283d80e08ffd12740a8ee8cf2d",
"timestamp": "0x6305c10f",
"totalDifficulty": "0x10d77",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
get block 34523 at node3:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x2",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e7578000000000000007e1701cc02888a7e501530dc399f2118184e9bde826d34ac159f76b13ab9ee7a299a2a8ef4d2b072252ca7fc68023138fafd802361eab7c3eb0b8b5099bc296a01",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x04a907ebb763452f484cb2d831d01ec4e80b219ec11da1b68231027a048c5c1c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0xc20001631404c81d19e0b5b5aa4d30d45ed793d0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0xfd1f9ab400c2633e485ee5170c5bd3241c112ebc146cc3529793ca8243f12bbb",
"timestamp": "0x6305c0f3",
"totalDifficulty": "0x10d78",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
geth block 34524 at node03 as below:
~]# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86dc", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
geth block 34524 at node1 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86dc", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x1",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e7578000000000000005ac59f8c2acbbb914559608e4deed715ab3741678bdd60d97363ba91235f70f255d78368bb7d1e19c200807dca3476f9b1b0eeccafc632f2980f55dfcfe0219901",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0xd50ab913a69f51cce74a0b86d2683697dc0166ed43b3701d959812f7a5ad88eb",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x4045d4ef78738b9750cc266bb972f66d950dc942",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86dc",
"parentHash": "0x1ffe6a9110016adea26eaccc794e4fca9361c348a11306d8a3211b5e39a6594c",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0x149d6b521601ce5243fb5c77b0cb8dff833971283d80e08ffd12740a8ee8cf2d",
"timestamp": "0x6305c112",
"totalDifficulty": "0x10d78",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
geth block 34524 at node0 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86dc", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x1",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e7578000000000000005ac59f8c2acbbb914559608e4deed715ab3741678bdd60d97363ba91235f70f255d78368bb7d1e19c200807dca3476f9b1b0eeccafc632f2980f55dfcfe0219901",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0xd50ab913a69f51cce74a0b86d2683697dc0166ed43b3701d959812f7a5ad88eb",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x4045d4ef78738b9750cc266bb972f66d950dc942",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86dc",
"parentHash": "0x1ffe6a9110016adea26eaccc794e4fca9361c348a11306d8a3211b5e39a6594c",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0x149d6b521601ce5243fb5c77b0cb8dff833971283d80e08ffd12740a8ee8cf2d",
"timestamp": "0x6305c112",
"totalDifficulty": "0x10d78",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
get block 34524 at node2 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86dc", true],"id":1}' localhost:8545
{"jsonrpc":"2.0","id":1,"result":null}
Both node0 and node1 had the same block at 34523 as below:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x1",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e757800000000000000e800b7cc1a0efcf18d3ac47a73f89e4c16993f11156a99e5df283c69d308a3d70c878c87b8f3a8572c411b8f2af31f2486ef2967f681f3ee5724726bb59dbb8b00",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x1ffe6a9110016adea26eaccc794e4fca9361c348a11306d8a3211b5e39a6594c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x0d80b670b2d44017468ccc75787ea017678c6f72",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0x149d6b521601ce5243fb5c77b0cb8dff833971283d80e08ffd12740a8ee8cf2d",
"timestamp": "0x6305c10f",
"totalDifficulty": "0x10d77",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
However, node2 and node3 had another block at 34523:
# curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x86db", true],"id":1}' localhost:8545 -s | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x0",
"difficulty": "0x2",
"extraData": "0xd883010000846765746888676f312e31382e34856c696e7578000000000000007e1701cc02888a7e501530dc399f2118184e9bde826d34ac159f76b13ab9ee7a299a2a8ef4d2b072252ca7fc68023138fafd802361eab7c3eb0b8b5099bc296a01",
"gasLimit": "0x2faf080",
"gasUsed": "0x0",
"hash": "0x04a907ebb763452f484cb2d831d01ec4e80b219ec11da1b68231027a048c5c1c",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0xc20001631404c81d19e0b5b5aa4d30d45ed793d0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x86db",
"parentHash": "0xcc3930f5b2ea236d7513fd7fee0e88061eadd9f16f2b3a0a03702bb2871d4239",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x262",
"stateRoot": "0xfd1f9ab400c2633e485ee5170c5bd3241c112ebc146cc3529793ca8243f12bbb",
"timestamp": "0x6305c0f3",
"totalDifficulty": "0x10d78",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
It was obviously that the chain had been forked.
node0 first kill log:
node1 first kill log:
node2 first kill log:
node3 first kill log:
geth start log:
node3:
node2:
node0
node1