Repository navigation
[31.x] Backports - #36662
Merged
Merged
[31.x] Backports#36662
Conversation
Keep private broadcast connections outside normal discouragement handling. Misbehaving private broadcast peers are still disconnected. Github-Pull: bitcoin#36312 Rebased-From: eab6630
LoadBlockIndex() adds to m_blocks_unlinked based only on nTx > 0, without checking BLOCK_HAVE_DATA. Pruning preserves nTx but clears BLOCK_HAVE_DATA, so a pruned block whose parent was header-only gets re-added on every restart, causing the CheckBlockIndex() assertion that entries must have data on disk to fail. Check that BLOCK_HAVE_DATA is set before inserting into m_blocks_unlinked. Fixes bitcoin#35050. Github-Pull: bitcoin#35168 Rebased-From: 0e4b0ba
A pruned stale-fork block whose parent doesn't have any transactions shouldn't be added to m_blocks_unlinked when starting up a node. Github-Pull: bitcoin#35168 Rebased-From: 3f44f9a
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
This was referenced Oct 26, 2026
This comment was marked as low quality.
This comment was marked as low quality.
Contributor
|
The Ralph finding looks like nothing to me. |
marcofleon
approved these changes
Oct 26, 2026
Contributor
There was a problem hiding this comment.
ACK 1bb872a
I think Ralph would maybe be right if the test's chain started from genesis and the fork was at the second block. But that's not the case for this test, as the fork happens at block 201.
C'mon Ralph...
sedited
approved these changes
Oct 26, 2026
This was referenced Oct 26, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Backports:
m_blocks_unlinkedon startup #35168