Closed
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
- Sync Erigon
maticnetwork/v0.0.3
for Polygon Mainnet - Upgrade binary to
maticnetwork/v0.0.4
- 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
Labels
No labels