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

Index unfinalized blocks #1144

Closed
4 tasks
stwiname opened this issue Jun 29, 2022 · 0 comments · Fixed by #1308
Closed
4 tasks

Index unfinalized blocks #1144

stwiname opened this issue Jun 29, 2022 · 0 comments · Fixed by #1308
Assignees

Comments

@stwiname
Copy link
Collaborator

stwiname commented Jun 29, 2022

Now that historical data is supported we can have the ability to index blocks that are unfinalized, and blocks that don't finalize can be rolled back so that we keep correct data.

A use case of this is that it reduces the delay between interactions with the chain and data from subquery

Todo:

  • use flag --unfinalized to enable the feature
  • once a project is upto the latest finalized block, start indexing unfinalized blocks.
  • Roll back any indexing of unfinalized blocks that are dropped and unfinalized
  • Add the ability to filter by finalized data, this would effectively result in the current behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants