Skip to content

L2 blocks with user-deposited transactions cannot be indexed #1

@AllFi

Description

@AllFi

This happens due to the absence of nonce in the RPC response.

backend-opchaina   | {"time":"2024-12-19T12:03:14.351Z","severity":"error","message":"** (FunctionClauseError) no function clause matching in EthereumJSONRPC.Transaction.do_elixir_to_params/1\n    (ethereum_jsonrpc 6.9.2) lib/ethereum_jsonrpc/transaction.ex:310: EthereumJSONRPC.Transaction.do_elixir_to_params(%{:ignore => :ignore, \"blockHash\" => \"0x85e1777a11abac44893c96f9076acca2c6a234710a8bc92d91ec2c5812af48fb\", \"blockNumber\" => 1, \"block_timestamp\" => ~U[2024-12-19 12:02:15Z], \"from\" => \"0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001\", \"gas\" => 1000000, \"hash\" => \"0x145c7481b308c57a8d7fceeb3dd98e0663cf973443d75cbae7f2a718aaf2df53\", \"input\" => \"0xc00121630000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000386\", \"to\" => \"0x4200000000000000000000000000000000000015\", \"transactionIndex\" => 0, \"type\" => 126, \"value\" => 0})\n    (ethereum_jsonrpc 6.9.2) lib/ethereum_jsonrpc/transaction.ex:306: EthereumJSONRPC.Transaction.elixir_to_params/1\n    (elixir 1.17.3) lib/enum.ex:1703: Enum.\"-map/2-lists^map/1-1-\"/2\n    (ethereum_jsonrpc 6.9.2) lib/ethereum_jsonrpc/blocks.ex:54: EthereumJSONRPC.Blocks.from_responses/2\n    (ethereum_jsonrpc 6.9.2) lib/ethereum_jsonrpc.ex:697: EthereumJSONRPC.fetch_blocks_by_params/3\n    (stdlib 6.1) timer.erl:590: :timer.tc/2\n    (indexer 6.9.2) lib/indexer/block/fetcher.ex:149: Indexer.Block.Fetcher.fetch_and_import_range/3\n    (stdlib 6.1) timer.erl:590: :timer.tc/2\n\n\nRetrying.","metadata":{"fetcher":"block_catchup","last_block_number":0,"first_block_number":2}}

Metadata

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