Repository navigation
backport: bitcoin#30221, #32069, #32580, #32875, #32878, #32882, #33212, #34897, #36150 (index unify + relevant fixes) #8042
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ee9bb26
test: Test bdb_ro dump of wallet without reset LSNs
knst 059ce4a
partial Merge bitcoin/bitcoin#32069: test: fix intermittent failure i…
knst 7e86e46
partial Merge bitcoin/bitcoin#30221: wallet: Ensure best block matche…
knst ee7021f
partial Merge bitcoin/bitcoin#32580: wallet, test: best block locator…
knst a4cc3c0
Merge bitcoin/bitcoin#32878: index: fix wrong assert of current_tip =…
knst 4bdfb4e
Merge bitcoin/bitcoin#33212: index: Don't commit state in BaseIndex::…
knst ce05350
Merge bitcoin/bitcoin#32882: index: remove unnecessary locator cleani…
knst 7ad8070
Merge bitcoin/bitcoin#32875: index: handle case where pindex_prev equ…
knst df7ac41
partial Merge bitcoin/bitcoin#34897: indexes: Don't commit ahead of t…
knst fa8a7c5
Merge bitcoin/bitcoin#36150: indexes: set prune lock to genesis befor…
knst cc8362d
fix(index): move the committed locator below the entries a rewind erases
knst 0afd6c3
fix(index): write a rewound block's erasures in one batch with its lo…
PastaPastaPasta 5e37377
fix(index): resume from the tip a skipped commit leaves behind
PastaPastaPasta 3cc304e
fix(index): check the blocks governance resumes from at startup
PastaPastaPasta 73ba99d
fix(index): reject an uncommitted tip the block index lost
PastaPastaPasta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
rg -n 'UpdatePruneLock|FindFilesToPrune|UnlinkPrunedFiles|ChainStateFlushed' src/validation.cpp src/node/blockstorage.cpp src/index/base.cppRepository: dashpay/dash
Length of output: 1672
Script executed:
Repository: dashpay/dash
Length of output: 18194
Script executed:
Repository: dashpay/dash
Length of output: 13112
Script executed:
Repository: dashpay/dash
Length of output: 5960
Keep the prune lock at the durable index locator height.
SetBestBlockIndexsets the prune lock to the in-memory index height.Commitnow skips the write when the index tip is not an ancestor of the last flushed block, so the durable locator can fall behind. Pruning can then unlink blocks above that locator before the index commit. A crash in that window makes the next startup fail with the prune-violation error, or with a fatal block-read error during index sync. The null-block change at line 489 does not cause this. The non-null prune lock and the new commit guard do.