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

Fix LogIndex Prune #9733

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Fix LogIndex Prune #9733

merged 1 commit into from
Mar 18, 2024

Conversation

somnathb1
Copy link
Contributor

Earlier assumption was that PruneLogIndex would only have to deal with block numbers after the last prune. So it could work with tx.cursor.First(). Now, after prune hack, kv.TransactionLog contains older logs for noPruneContracts, so, it must seek to the point of last prune progress.

Without this, for every update of head block, the stages would run incrementally, but LogIndex Prune would run from the beginning of TransactionLog table, spending 1-2 hours.

@AskAlexSharov AskAlexSharov merged commit e9a8555 into devel Mar 18, 2024
6 checks passed
@AskAlexSharov AskAlexSharov deleted the som/prune_fix branch March 18, 2024 03:20
@ghost ghost mentioned this pull request Jun 3, 2024
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.

2 participants