Skip to content

Commit 6fa9083

Browse files
authored
integration: add totalDifficulty for eth_getBlockBy[Number][Hash] pre merge (#282)
1 parent d0ee8c7 commit 6fa9083

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"test": {
4+
"reference": "https://etherscan.io/block/0",
5+
"description": "block 0"
6+
},
7+
"request":{
8+
"jsonrpc":"2.0",
9+
"method":"eth_getBlockByHash",
10+
"params":["0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3", false],
11+
"id":1
12+
},
13+
"response":{
14+
"jsonrpc":"2.0",
15+
"id":1,
16+
"result:": {
17+
"difficulty": "0x400000000",
18+
"extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",
19+
"gasLimit": "0x1388",
20+
"gasUsed": "0x0",
21+
"hash": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
22+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
23+
"miner": "0x0000000000000000000000000000000000000000",
24+
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
25+
"nonce": "0x0000000000000042",
26+
"number": "0x0",
27+
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
28+
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
29+
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
30+
"size": "0x21c",
31+
"stateRoot": "0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544",
32+
"timestamp": "0x0",
33+
"totalDifficulty": "0x400000000",
34+
"transactions": [],
35+
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
36+
"uncles": []
37+
}
38+
39+
}
40+
}
41+
]
42+

integration/mainnet/eth_getBlockByNumber/test_12.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
2828
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
2929
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
30+
"totalDifficulty": "0x400000000",
3031
"size": "0x21c",
3132
"stateRoot": "0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544",
3233
"timestamp": "0x0",

0 commit comments

Comments
 (0)