Page MenuHomePhabricator

p2p: Restrict downloading of blocks for snapshot chain
ClosedPublic

Authored by PiRK on Aug 7 2025, 09:59.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC67ce874e3f8b: p2p: Restrict downloading of blocks for snapshot chain
Summary

If the best chain of the peer doesn't include the snapshot
block, it is futile to download blocks from this chain,
because we couldn't reorg to it. We'd also crash
trying to reorg because this scenario is not handled.

This is a partial backport of core#29519
https://github.com/bitcoin/bitcoin/pull/29519/commits/7a885518d57c6eb818ebef5fd04a575f324ee8b2

Test Plan

ninja all check-all