Skip to content

Polygon Mainnet: "block has less receipts than expected" #6276

Closed
@kcy1019

Description

System information

Erigon version: maticnetwork/v0.0.4(based on v2.31.0)

OS & Version: Linux

Commit hash : de5391602c810c28e8c71b86efbc6c04e61b39d3

Expected behaviour

We can retrieve transaction reciepts using jsonrpc API:

curl -XPOST 'http://localhost:8545' \
     -H 'Content-Type: application/json' \
     --data '{"method":"eth_getTransactionReceipt","params":["0x31ce15ce9a1ff347f4204a1ed3625861165c53ae08743c1f36a32865c62744c6"],"id":1,"jsonrpc":"2.0"}'

Actual behaviour

{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"block has less receipts than expected: 0 \u003c= 0, block: 36635776"}}

Note that we haven't encountered this kind of errors in maticnetwork/v0.0.3(which seems to be based on somewhere around v2022.08.01).

Steps to reproduce the behaviour

  1. Sync Erigon maticnetwork/v0.0.3 for Polygon Mainnet
  2. Upgrade binary to maticnetwork/v0.0.4
  3. Request API:
    curl -XPOST 'http://localhost:8545' \
         -H 'Content-Type: application/json' \
         --data '{"method":"eth_getTransactionReceipt","params": 
    ["0x31ce15ce9a1ff347f4204a1ed3625861165c53ae08743c1f36a32865c62744c6"],"id":1,"jsonrpc":"2.0"}'

We tried the above steps twice and it consistently reproduced the problem.

NOTES

  • eth_getBlockReceipts works fine for the block number, so at least we have a workaround.

Backtrace

N/A

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions