Skip to content

Processing some block on Polygon Amoy fails #420

@pawel-kolodziej-neti

Description

@pawel-kolodziej-neti

When I run the EVM processor with specific criteria on Polygon Amoy, it crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Enable transaction logs setFields({ log: { transactionHash: true } })
  2. Configure processor to use Polygon Amoy (I am using alchemy RPC)
  3. Start with block with state-sync transaction (in my case, this is reproducible for block 29241027)
  4. After a few seconds, an error appears and the processor crashes.

Error logs

{
    "code": -32000,
    "rpcId": 141,
    "rpcMethod": "eth_getLogs",
    "rpcParams": [
        {
            "fromBlock": "0x1be2f09",
            "toBlock": "0x1be2f12"
        }
    ],
    "rpcResponse": {
        "error": {
            "code": -32000,
            "message": "ReceiptGen.GetReceipt: txn is a state-sync transaction"
        },
        "id": 141,
        "jsonrpc": "2.0"
    },
    "rpcUrl": "******************",
    "stack": "RpcError: ReceiptGen.GetReceipt: txn is a state-sync transaction\n    at validateError (/squid/node_modules/@subsquid/evm-processor/lib/ds-rpc/rpc.js:205:23)\n    at RpcClient.receiveResult (/squid/node_modules/@subsquid/rpc-client/lib/client.js:371:28)\n    at /squid/node_modules/@subsquid/rpc-client/lib/client.js:278:29\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}

Environment (please complete the following information):

  • @subsquid/[email protected]
  • node.js 20
  • npm 10.7.0
  • OS - inside node:20-alpine docker container

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions