reth icon indicating copy to clipboard operation
reth copied to clipboard

Node with --rollup.historicalrpc setting does not respond correctly to some calls

Open MrFrogoz opened this issue 1 month ago • 17 comments
trafficstars

Describe the bug

Hi,

it seems that the node does not respond correctly when called via --rollup.historicalrpc setting.

Steps to reproduce

curl --location 'RPC BEDROCK' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getTransactionReceipt",
    "params": [
        "0x867304d4950edab074eabb3d0179488b3556a3bafe88079d8b70461579ef88ad"
    ]
}'
{"jsonrpc":"2.0","id":1,"result":{"blockHash":"0x6d9074e5745d3b0529abdfef2e295b0c8b5151a95996b62cdac9738840ca07e9","blockNumber":"0x198f31","contractAddress":null,"cumulativeGasUsed":"0x61d3","from":"0xf4458308131711fae3c89850ab75355f65a0cf0e","gasUsed":"0x61d3","l1Fee":"0x24aba84edf9b9","l1FeeScalar":"1.5","l1GasPrice":"0x13988c7049","l1GasUsed":"0x13f6","logs":[{"address":"0x4200000000000000000000000000000000000006","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000f4458308131711fae3c89850ab75355f65a0cf0e","0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"],"data":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","blockNumber":"0x198f31","transactionHash":"0x867304d4950edab074eabb3d0179488b3556a3bafe88079d8b70461579ef88ad","transactionIndex":"0x0","blockHash":"0x6d9074e5745d3b0529abdfef2e295b0c8b5151a95996b62cdac9738840ca07e9","logIndex":"0x0","removed":false}],"logsBloom":"0x00000000000000000000000000000000000000000000000000040000000000000000000000000000000000100000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000800000000000000000000002000000000004000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000010400000000000000000000000080000000000000000000000000000000000","status":"0x1","to":"0x4200000000000000000000000000000000000006","transactionHash":"0x867304d4950edab074eabb3d0179488b3556a3bafe88079d8b70461579ef88ad","transactionIndex":"0x0"}}
curl --location 'RPC RETH WITH --rollup.historicalrpc' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getTransactionReceipt",
    "params": [
        "0x867304d4950edab074eabb3d0179488b3556a3bafe88079d8b70461579ef88ad"
    ]
}'
{"jsonrpc":"2.0","id":1,"result":null}
blocks=(
1675339
1675057
105197725
105196026
)

for block in "${blocks[@]}"; do
  hex_block=$(printf "0x%X" "$block")

  echo "➡️  Querying block $block ($hex_block)"

  curl -s -X POST 'RPC RETH WITH --rollup.historicalrpc' \
    -H "Content-Type: application/json" \
    -d "[{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"$hex_block\", true],\"id\":1}]"

  echo -e "---\n"
  sleep 1
done
➡️  Querying block 1675339 (0x19904B)
[{"jsonrpc":"2.0","id":1,"result":null}]---

➡️  Querying block 1675057 (0x198F31)
[{"jsonrpc":"2.0","id":1,"result":null}]---

➡️  Querying block 105197725 (0x645309D)
[{"jsonrpc":"2.0","id":1,"result":null}]---

➡️  Querying block 105196026 (0x64529FA)
[{"jsonrpc":"2.0","id":1,"result":null}]---

Node logs


Platform(s)

No response

Container Type

Not running in a container

What version/commit are you on?

reth-optimism-cli Version: 1.8.2

What database version are you on?

.

Which chain / network are you on?

optimism mainnet

What type of node are you running?

Archive (default)

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

MrFrogoz avatar Oct 14 '25 11:10 MrFrogoz