-
Notifications
You must be signed in to change notification settings - Fork 21.8k
Open
Labels
Description
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.
Reactions are currently unavailable