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

Resume instead of restarting indexing #141

Merged
merged 6 commits into from
Feb 19, 2022
Merged

Resume instead of restarting indexing #141

merged 6 commits into from
Feb 19, 2022

Conversation

casey
Copy link
Collaborator

@casey casey commented Feb 19, 2022

No description provided.

@casey
Copy link
Collaborator Author

casey commented Feb 19, 2022

@terror This PR adds a new table that stores which the block hashes we've indexed for each height. This lets us resume where we left off, and also lets us detect reorgs, although I didn't write any code to actually handle reorgs.

I want to add some tests, but wanted to get this code up, since it's useful if you try to index the main chain.

@casey casey marked this pull request as ready for review February 19, 2022 07:55
@casey casey merged commit 29d1493 into master Feb 19, 2022
@casey casey deleted the incremental-indexing branch February 19, 2022 07:58
@casey casey restored the incremental-indexing branch February 19, 2022 07:58
@casey casey deleted the incremental-indexing branch February 19, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant