HomePhabricator

Extract inv saturation check and data request time computation

Description

Extract inv saturation check and data request time computation

Summary:
The functions are extracted from the PeerManager::AddTxAnnouncement()
method so they can be reused for proofs announcements as well. They take
the InvRequestTracker as a parameter as well as a structure containing
the inventory specific parameters.

Part of T1611

Test Plan:

ninja all check-all
./test/functional/test_runner.py p2p_inv_download

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
FabienAuthored on May 27 2021, 13:46
FabienPushed on Jun 3 2021, 14:44
Reviewer
Restricted Project
Differential Revision
D9598: Extract inv saturation check and data request time computation
Parents
rABC7209a1f1c395: Bump version to 0.23.6
Branches
Unknown
Tags
Unknown