Skip to content

Query transactions from era files on a pruned node #33666

@s1na

Description

@s1na

Let's say I prune all premerge blocks from my node. We have this feature that if I simply drop an era1 file into the right corner of the datadir, then I can read the corresponding headers and bodies via rpc as if my node was never pruned.

However reading transactions which exist within that segment, by their hash, does not work. That is because once we prune the transaction index, we never re-create it from the era1 files. This affects both eth_getTransactionByHash and eth_getTransactionReceipt.
This is a complicated task because the transaction indexer cannot have gaps in its index right now.

The same applies to logs. eth_getLogs returns an error if query goes beyond the cutoff point regardless of the era files existing for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions