HomePhabricator

p2p: Avoid prematurely clearing download state for other peers

Description

p2p: Avoid prematurely clearing download state for other peers

Summary:

Avoid letting one peer send us data that clears out the download request (and related timers etc) from another peer.

The exception is if a block is definitely stored to disk, in which case we'll clear the download state (just as we do for compact blocks).

Backport of core#27608.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16879

Details

Provenance
Suhas Daftuar <sdaftuar@chaincode.com>Authored on May 9 2023, 15:58
FabienCommitted on Thu, Oct 10, 07:09
FabienPushed on Thu, Oct 10, 07:09
Reviewer
Restricted Project
Differential Revision
Restricted Differential Revision
Parents
rABC2701a514b014: Avoid headers assertions in the compact block workflow
Branches
Unknown
Tags
Unknown

Event Timeline

Fabien added an edge: Restricted Differential Revision.