reth icon indicating copy to clipboard operation
reth copied to clipboard

Inconsistency in eth_getBlockReceipts response

Open santi1234567 opened this issue 6 months ago • 3 comments
trafficstars

Describe the bug

In the process of running an indexer with a newly synced reth mainnet node (first time using reth), i've noticed a difference in the response of eth_getBlockReceipts compared to what is shown on explorers and what the response of the same request on another node (geth).

The request was done for block 21897484 (0x14E210C)

Full response from reth:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "type": "0x2",
            "status": "0x1",
            "cumulativeGasUsed": "0x1abdba5",
            "logs": [
                {
                    "address": "0x00000000219ab540356cbb839cbe05303d7705fa",
                    "topics": [
                        "0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030895933097f2e11348e9dcc215d66e24cacce3462409a5db79adfa93ffe05edb6ebeb2e11c1a1293ac3ecfc1b904f31560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200100000000000000000000006c11b7b9b5b4ee542943dc0d3970a867e8ee5197000000000000000000000000000000000000000000000000000000000000000800405973070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060b531c61135fb24374fea2ed6936fa93f6636af2738dcd13adb37432b05bad72e72d8bb366d1959461385f1110c56e1b605c6837126db52477b56972e90fd7482bbba25f6487d251332907b7e018f923e366110d92c3ac2012555a5c03c987b8500000000000000000000000000000000000000000000000000000000000000080a5f1d0000000000000000000000000000000000000000000000000000000000",
                    "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
                    "blockNumber": "0x14e210c",
                    "blockTimestamp": "0x67b8f3db",
                    "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
                    "transactionIndex": "0x0",
                    "logIndex": "0x0",
                    "removed": false
                }
            ],
            "logsBloom": "0x00000000000000000000400000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000020000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000",
            "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
            "transactionIndex": "0x0",
            "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
            "blockNumber": "0x14e210c",
            "gasUsed": "0x1abdba5",
            "effectiveGasPrice": "0x72726ce6",
            "from": "0x67c4aa5c2ba97512806ea7e9b41dedf866cf969e",
            "to": null,
            "contractAddress": "0x5300ea20ccb74cd50f39b7921f984d579fec2bcc"
        }
    ]
}

Response from geth (only first log since its too long):

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
            "blockNumber": "0x14e210c",
            "contractAddress": "0x5300ea20ccb74cd50f39b7921f984d579fec2bcc",
            "cumulativeGasUsed": "0x19eff8",
            "from": "0x67c4aa5c2ba97512806ea7e9b41dedf866cf969e",
            "gasUsed": "0x19eff8",
            "effectiveGasPrice": "0x72726ce6",
            "logs": [
                {
                    "address": "0x5300ea20ccb74cd50f39b7921f984d579fec2bcc",
                    "topics": [
                        "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
                        "0x0000000000000000000000000000000000000000000000000000000000000000",
                        "0x00000000000000000000000067c4aa5c2ba97512806ea7e9b41dedf866cf969e"
                    ],
                    "data": "0x",
                    "blockNumber": "0x14e210c",
                    "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
                    "transactionIndex": "0x0",
                    "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
                    "logIndex": "0x0",
                    "removed": false
                },
                {
                    "address": "0x5300ea20ccb74cd50f39b7921f984d579fec2bcc",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000000000000000000000000000000000000000000000",
                        "0x0000000000000000000000005300ea20ccb74cd50f39b7921f984d579fec2bcc"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000d99a8cec7e20000",
                    "blockNumber": "0x14e210c",
                    "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
                    "transactionIndex": "0x0",
                    "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
                    "logIndex": "0x1",
                    "removed": false
                },
                {
                    "address": "0x5300ea20ccb74cd50f39b7921f984d579fec2bcc",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000000000000000000000000000000000000000000000",
                        "0x00000000000000000000000067c4aa5c2ba97512806ea7e9b41dedf866cf969e"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000470de4df820000",
                    "blockNumber": "0x14e210c",
                    "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
                    "transactionIndex": "0x0",
                    "blockHash": "0x758ad8e1b8dae1ca3449b4781d865daeb9f08343a1d0a66a4a70d04d8c173708",
                    "logIndex": "0x2",
                    "removed": false
                }
            ],
            "logsBloom": "0x00000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000004000000000000000000000000000400000000000000008000400000001000000000000000000000000000000001000020000000000000000000800000000000000000000000010000000400000010000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000040800000000000000000000000000000000000000000",
            "status": "0x1",
            "to": null,
            "transactionHash": "0x48b00fa0b95b12e8e7785b23fa19f521733a9a9a5c27a5b380e86cd08767bc3c",
            "transactionIndex": "0x0",
            "type": "0x2"
        },

Steps to reproduce

Steps to reproduce:

  • Run:
curl --location 'http://localhost:8545/' \
--header 'Content-Type: application/json' \
--data '{
	"method":"eth_getBlockReceipts",
	"params":["0x14E210C"],
	"id":1,
	"jsonrpc":"2.0"
}'

Node logs


Platform(s)

Linux (x86)

Container Type

Docker

What version/commit are you on?

v1.3.10

What database version are you on?

Since I'm running on docker, I haven't been able to find it.

Which chain / network are you on?

mainnet

What type of node are you running?

Full via --full flag

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • [x] I agree to follow the Code of Conduct

santi1234567 avatar Apr 22 '25 19:04 santi1234567