Page MenuHomePhabricator

p2p: sync from limited peer, only request blocks below threshold
AcceptedPublic

Authored by PiRK on Aug 5 2025, 15:52.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Requesting historical blocks from network limited peers is a direct disconnection cause.
The node must only request the blocks who know for sure the limited peer can provide, and not just assume that it can request any blocks as soon as it leaves IBD.

This is a backport of core#28120

Test Plan

Checked that the new functional test fails on master, so this diff actually fixes something.

ninja all check-all

Event Timeline

PiRK published this revision for review.Aug 6 2025, 11:35
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/net_processing.cpp
2087 ↗(On Diff #55103)
test/functional/p2p_node_network_limited.py
22 ↗(On Diff #55103)
This revision is now accepted and ready to land.Aug 9 2025, 16:33