Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation re: Nethermind #434

Open
svanegmond opened this issue Mar 14, 2024 · 4 comments
Open

Documentation re: Nethermind #434

svanegmond opened this issue Mar 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@svanegmond
Copy link

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?

@svanegmond svanegmond added the bug Something isn't working label Mar 14, 2024
@svanegmond
Copy link
Author

the documentation page I'm talking about is here - https://docs.safe.global/advanced/api-rpc-requirements

@svanegmond
Copy link
Author

Ok. My point of pointing all this out is that if you start a Safe instance and begin using Safe, it will work. If you start to commission a Safe instance a few million blocks after beginning to use Safe, it will forever be stuck (with few useful log outputs) trying to obtain transactions it can never obtain.

For ongoing operations, sure, turn off full archive, but it needs to be on for initial scan to succeed.

@svanegmond
Copy link
Author

svanegmond commented Mar 25, 2024

This appears to be chatGPT.

I know what the problem is.

This bug is giving suggestions to improve the documentation.

@Uxio0
Copy link
Member

Uxio0 commented Apr 12, 2024

Feel free to send a PR to safe-docs

@luarx luarx transferred this issue from safe-global/safe-transaction-service Apr 12, 2024
@safe-global safe-global deleted a comment from Phani1609 Apr 18, 2024
@safe-global safe-global deleted a comment from Phani1609 Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants