celo-org / op-geth

GNU Lesser General Public License v3.0
0 stars 0 forks source link

failed to get logs for block #26498859 #274

Open karlb opened 3 hours ago

karlb commented 3 hours ago
cast logs --from-block 26498859 --to-block 26498859 --rpc-url https://alfajores-forno.celo-testnet.org/

fails with Error: server returned an error response: error code -32000: failed to get logs for block #26498859

I can reproduce the same error with a local synced node. The logs show the following error

op-geth-1  | ERROR[11-15|13:10:42.752] Invalid receipt array RLP 
hash=877281..16a7c3 err="rlp: expected input string or byte for []uint8, decoding into ([]*rawdb.receiptLogs)[2](rawdb.storedReceiptRLP).PostStateOrStatus"

The block has three txs, one of them is a CIP-64 tx, so it could be related to the CIP-64 receipt handling.

karlb commented 3 hours ago

Getting the receipts for each tx separately works fine with:

export ETH_RPC_URL=https://alfajores-forno.celo-testnet.org
cast receipt 0xce9354c212ca4d8fa5c6020d7dae2ce3f3839f685ce16d87c86fa1e5e06733f1
cast receipt 0xf6217b381bc60209b91dfe9885f48cda229b232b1b5128b9a13c7c0c209aa669
cast receipt 0xa9a7307dbd08f485fab290ddbdb89989f926e37634cb07690a935683290f36fc