-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Describe the bug
Nethermind requires additional settings to work with Safe beyond the requirement for an archive node.
To Reproduce
- Sync a Nethermind host to the Shyft chain.
- Attempt to fetch a transaction older than 2.35M blocks with eth_getTransactionByHash
The issue is the setting Receipt.TxLookupLimit. It is documented like this:
The number of recent blocks to maintain transaction index for. 0 to never remove indices, -1 to never index. Defaults to 2350000.
I confirmed on the Nethermind discord:
is it right that a receipt being purged should cause getTransactionByHash to deny the existence of the tx? It can still be observed by fetching the block it’s contained in.
Nethermind dev replied:
Hi, it just does not save all of the txhash -> block mapping which take up a lof of space.
I have filed a feature request to cause the TxLookupLimit to be 0 when pruning is disabled. We'll see if they agree. Meantime, can you document that Receipt.TxLookupLimit must be set to 0 in order to be able to index "old" transactions?