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

Update our testnet indexer to support restarting from the last processed blockheight #1117

Open
charleslavon opened this issue Apr 16, 2024 · 0 comments

Comments

@charleslavon
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The primary indexer used by test.near.org, discovery-stage-indexer is currently configured to support indexing blocks starting from a terraform configured START_BLOCK_HEIGHT. When something occurs which requires the indexer to be restarted, indexing starts from this start block height, or requires manual intervention to determine what was the last block processed and an update to terraform to set this as the START_BLOCK_HEIGHT.

Describe the solution you'd like
Automate the fallback to the last processed block height.

  • The indexer should maintain a value somewhere indicating the last block it indexed.
  • Update the config to allow one to choose starting from START_BLOCK_HEIGHT or from the interruption block

Additional context
Reference tutorial https://docs.near.org/build/data-infrastructure/lake-framework/running-near-lake/lake-start-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

2 participants