Skip to content

Documentation re: Nethermind #434

@svanegmond

Description

@svanegmond

Describe the bug

Nethermind requires additional settings to work with Safe beyond the requirement for an archive node.

To Reproduce

  1. Sync a Nethermind host to the Shyft chain.
  2. 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?

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