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

Reindex from a block height #1095

Closed
5 tasks
jiqiang90 opened this issue Jun 2, 2022 · 1 comment · Fixed by #1208
Closed
5 tasks

Reindex from a block height #1095

jiqiang90 opened this issue Jun 2, 2022 · 1 comment · Fixed by #1208

Comments

@jiqiang90
Copy link
Member

jiqiang90 commented Jun 2, 2022

Objective:
Since we support historical data, similar as the database snapshot, which mean we could allow user to reindex to specific block height.

Todo:

  • use flag --reindex = blockHeight
  • validate reindexing blockHeight with metadata (lastProcessedHeight), update metadata once it successful rewinded
  • if POI is on, delete mmr to the height(leafIndex), also remove Poi records.
  • Remove data in other tables
  • put in a tx, if it failed to rewind we still have the original data.
@jamesbayly
Copy link
Contributor

Can we add an additional feature to do a db migration at a specific block height?

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