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

ION install docs: Add requestMaxRetries config parameter #222

Open
thobson88 opened this issue Jan 20, 2025 · 0 comments
Open

ION install docs: Add requestMaxRetries config parameter #222

thobson88 opened this issue Jan 20, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@thobson88
Copy link
Collaborator

thobson88 commented Jan 20, 2025

TODO:

Update the docs to add the following parameter in the ION bitcoin config file $ION_BITCOIN_CONFIG_FILE_PATH:

"requestMaxRetries": 6

Reason:

The ION synchronisation step (when npm run bitcoin runs for the first time) takes several hours and appears to store everything in memory until the end (when it writes the results of parsing all blocks to the mongodb). It's also quite common for an RPC block request to fail and (by default) if three fail then the process stops and has to be restarted from the beginning.

This change makes that less likely.

The requestMaxRetries parameter gets picked up in the Sidetree BitcoinProcessor class and passed to BitcoinClient.

@thobson88 thobson88 added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant