Skip to content

p2p: Allow block downloads from peers without snapshot block after assumeutxo validation - #33604

Merged
achow101 merged 2 commits into
bitcoin:masterfrom
stringintech:2025/10/assumeutxo-sync-after-validation
Jan 29, 2026
Merged

achow101 merged 2 commits into
bitcoin:masterfrom
stringintech:2025/10/assumeutxo-sync-after-validation

Conversation

@stringintech

@stringintech stringintech commented Oct 12, 2025 •

Copy link
Copy Markdown
Member

Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

The restriction persists because m_chainman.CurrentChainstate().SnapshotBase() continues to return the snapshot base block until restart, even after validation completes. Added m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED check to only apply the peer restriction while background validation is ongoing.

Also added test coverage in feature_assumeutxo.py that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

@DrahtBot DrahtBot added the P2P label Oct 12, 2025
@DrahtBot

DrahtBot commented Oct 12, 2025 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33604.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK fjahr, sedited, achow101
Concept ACK Raimo33, mzumsande
Stale ACK stratospher

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

LLM Linter (✨ experimental)

Possible places where comparison-specific test macros should replace generic comparisons:

  • test/functional/feature_assumeutxo.py: "assert int(forking_node.getblockchaininfo()['chainwork'], 16) > forking_node_old_chainwork" -> recommendation: use assert_greater_than(int(forking_node.getblockchaininfo()['chainwork'], 16), forking_node_old_chainwork)

2026-01-24 19:23:44

@sedited

sedited commented Oct 12, 2025

Copy link
Copy Markdown
Contributor

Nice, Concept ACK.

@fanquake

Copy link
Copy Markdown
Member

cc @mzumsande

@stringintech

Copy link
Copy Markdown
Member Author

This change allows the snapshot chainstate to reorg to chains that don't include the snapshot block after validation completes (not sure yet if this is the only mechanism that would allow such reorgs), so we must not assume anywhere in the codebase that SnapshotBase() is always an ancestor of the active tip. I'll take a closer look to see if any such assumptions exist, but I thought this was worth noting here.

@Raimo33

Raimo33 commented Oct 14, 2025

Copy link
Copy Markdown
Contributor

Concept ACK

approach seems fine

@stratospher stratospher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9f946a7.

nice! I think this aligns with the original intention to restrict the peer only when background sync isn't over in #29519 (comment) where this code was introduced.

looks like we might incorrectly set pindexLastCommonBlock in L1401 to the previous best known block tip again in this scenario. but it's not a problem since we immediately reset it back to the correct value + comments suggest it's ok to set it incorrectly and that's way better than introducing more conditions.

also slightly related: #30288

@DrahtBot
DrahtBot requested a review from sedited October 14, 2025 18:22
@stringintech

Copy link
Copy Markdown
Member Author

Thanks for the links @stratospher!
FYI, calculating pindexLastCommonBlock is undergoing some improvements in #32180, and I will probably have to rebase onto that change. But either way, as you mentioned, it shouldn't cause any issues.

@mzumsande mzumsande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

@fjahr

fjahr commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

Concept ACK

Comment thread src/net_processing.cpp Resolved
@stringintech
stringintech force-pushed the 2025/10/assumeutxo-sync-after-validation branch from 9f946a7 to 6b92a69 Compare December 18, 2025 08:57
@stringintech

stringintech commented Dec 18, 2025 •

Copy link
Copy Markdown
Member Author

9f946a7 to 5cd0968 (compare) - rebased, resolved conflict with #30214, and addressed #33604 (comment). Also PR and first commit descriptions are updated.

edit: second force push (6b92a69 to 5cd0968) is to drop an accidentally included iostream header.

…sumeutxo validation

After assumeutxo background validation completes, allow block downloads from peers that don't have the snapshot block in their best chain.

Previously, these peers were skipped until restart because `m_chainman.CurrentChainstate().SnapshotBase()` continued returning non-null even after validation finished. Add `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the restriction while background validation is ongoing.
@stringintech
stringintech force-pushed the 2025/10/assumeutxo-sync-after-validation branch from 6b92a69 to 5cd0968 Compare December 18, 2025 09:11

@fjahr fjahr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 5cd096803d223166b9aa36e783406a36cdb150bc

Reviewed code and confirmed the new test failed previous to the behavior change.

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5cd096803d223166b9aa36e783406a36cdb150bc

Comment thread test/functional/feature_assumeutxo.py Resolved
Add test coverage to ensure peers without the snapshot block in their chain can be used for block downloads after background validation completes. The test fails without the fix in the previous commit.
@stringintech
stringintech force-pushed the 2025/10/assumeutxo-sync-after-validation branch from 5cd0968 to 7d9e1a8 Compare January 24, 2026 19:23
@stringintech

Copy link
Copy Markdown
Member Author

5cd0968 to 7d9e1a8 - Addressed #33604 (comment).

@fjahr

fjahr commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

Re-ACK 7d9e1a8

Only change since last review was a variable renaming.

PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 2, 2026
…apshot block after assumeutxo validation

7d9e1a8 test: Verify peer usage after assumeutxo validation completes (stringintech)
0067abe p2p: Allow block downloads from peers without snapshot block after assumeutxo validation (stringintech)

Pull request description:

  Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

  The restriction persists because `m_chainman.CurrentChainstate().SnapshotBase()` continues to return the snapshot base block until restart, even after validation completes. Added `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the peer restriction while background validation is ongoing.

  Also added test coverage in `feature_assumeutxo.py` that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

ACKs for top commit:
  fjahr:
    Re-ACK 7d9e1a8
  achow101:
    ACK 7d9e1a8
  sedited:
    Re-ACK 7d9e1a8

Tree-SHA512: 5515971da7bf7efc55eecdf03686f44c20c9e52dd168e7cfa119032d6a8ebccee69df7143075e4e9d0a01426cd9ae7202dce5c00919a82478ebf49a15dc0fe19
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 3, 2026
…apshot block after assumeutxo validation

7d9e1a8 test: Verify peer usage after assumeutxo validation completes (stringintech)
0067abe p2p: Allow block downloads from peers without snapshot block after assumeutxo validation (stringintech)

Pull request description:

  Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

  The restriction persists because `m_chainman.CurrentChainstate().SnapshotBase()` continues to return the snapshot base block until restart, even after validation completes. Added `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the peer restriction while background validation is ongoing.

  Also added test coverage in `feature_assumeutxo.py` that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

ACKs for top commit:
  fjahr:
    Re-ACK 7d9e1a8
  achow101:
    ACK 7d9e1a8
  sedited:
    Re-ACK 7d9e1a8

Tree-SHA512: 5515971da7bf7efc55eecdf03686f44c20c9e52dd168e7cfa119032d6a8ebccee69df7143075e4e9d0a01426cd9ae7202dce5c00919a82478ebf49a15dc0fe19
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 3, 2026
…apshot block after assumeutxo validation

7d9e1a8 test: Verify peer usage after assumeutxo validation completes (stringintech)
0067abe p2p: Allow block downloads from peers without snapshot block after assumeutxo validation (stringintech)

Pull request description:

  Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

  The restriction persists because `m_chainman.CurrentChainstate().SnapshotBase()` continues to return the snapshot base block until restart, even after validation completes. Added `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the peer restriction while background validation is ongoing.

  Also added test coverage in `feature_assumeutxo.py` that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

ACKs for top commit:
  fjahr:
    Re-ACK 7d9e1a8
  achow101:
    ACK 7d9e1a8
  sedited:
    Re-ACK 7d9e1a8

Tree-SHA512: 5515971da7bf7efc55eecdf03686f44c20c9e52dd168e7cfa119032d6a8ebccee69df7143075e4e9d0a01426cd9ae7202dce5c00919a82478ebf49a15dc0fe19
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 3, 2026
…apshot block after assumeutxo validation

7d9e1a8 test: Verify peer usage after assumeutxo validation completes (stringintech)
0067abe p2p: Allow block downloads from peers without snapshot block after assumeutxo validation (stringintech)

Pull request description:

  Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

  The restriction persists because `m_chainman.CurrentChainstate().SnapshotBase()` continues to return the snapshot base block until restart, even after validation completes. Added `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the peer restriction while background validation is ongoing.

  Also added test coverage in `feature_assumeutxo.py` that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

ACKs for top commit:
  fjahr:
    Re-ACK 7d9e1a8
  achow101:
    ACK 7d9e1a8
  sedited:
    Re-ACK 7d9e1a8

Tree-SHA512: 5515971da7bf7efc55eecdf03686f44c20c9e52dd168e7cfa119032d6a8ebccee69df7143075e4e9d0a01426cd9ae7202dce5c00919a82478ebf49a15dc0fe19
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
…thout snapshot block after assumeutxo validation

7d9e1a810239a65a153c35f0f94490560441db49 test: Verify peer usage after assumeutxo validation completes (stringintech)
0067abe153298ce9f14262a15533033e6e907f2b p2p: Allow block downloads from peers without snapshot block after assumeutxo validation (stringintech)

Pull request description:

  Currently, after assumeutxo background validation finishes, the node continues to skip peers that don't have the snapshot block in their best chain until restart. This unnecessarily excludes peers from block downloads even though the background sync has completed and undo data is available.

  The restriction persists because `m_chainman.CurrentChainstate().SnapshotBase()` continues to return the snapshot base block until restart, even after validation completes. Added `m_chainman.CurrentChainstate().m_assumeutxo == Assumeutxo::UNVALIDATED` check to only apply the peer restriction while background validation is ongoing.

  Also added test coverage in `feature_assumeutxo.py` that verifies peers without the snapshot block can be used for block downloads after background validation completes. The test fails without this fix.

ACKs for top commit:
  fjahr:
    Re-ACK 7d9e1a810239a65a153c35f0f94490560441db49
  achow101:
    ACK 7d9e1a810239a65a153c35f0f94490560441db49
  sedited:
    Re-ACK 7d9e1a810239a65a153c35f0f94490560441db49

Tree-SHA512: 5515971da7bf7efc55eecdf03686f44c20c9e52dd168e7cfa119032d6a8ebccee69df7143075e4e9d0a01426cd9ae7202dce5c00919a82478ebf49a15dc0fe19
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 9, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 9, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 10, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 10, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 10, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 11, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 12, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 13, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 14, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 14, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 19, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 19, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 19, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 19, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 19, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 20, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 20, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Nov 20, 2026
… promoted

bitcoin#33604 is not adopted. Before the restart that promotes a validated
snapshot, Dash cannot disconnect below the base's carried Evo state, so
downloading from such peers only stalls and churns the chain. bitcoin#29519's
refusal, which keys on the snapshot base, already lasts until promotion here,
because no snapshot base exists after the promoting restart.

Its test is replaced by this one. The snapshot node, validated but not yet
restarted, still reports its snapshot base in getchainstates. It refuses a
peer whose more-work chain forks below the base, without an Evo state error,
and keeps its tip. The restart promotes it, so getchainstates no longer
reports a snapshot base, and it then reorgs to that chain below the old base,
through the validated chainstate's Evo state. The fork is mined to a fresh
address: with the mock time fixed, the usual address would rebuild the block
just invalidated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants