HomePhabricator

Turn InvRequestTracker into a template class

Description

Turn InvRequestTracker into a template class

Summary:
This makes it possible to use it for tracking proofs and not only
transactions. Only uint256 or subclasses are supported as an InvId
due to the copy constructor.

Next steps are to update the names of the files, variable, comments and
public interfaces from tx to inv.

Depends on D9567.

Test Plan:

ninja all check-all
./test/functional/test_runner.py p2p_tx_download
ninja bitcoin-fuzzers

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Maniphest Tasks: T1611

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

Details

Provenance
FabienAuthored on May 20 2021, 17:28
FabienPushed on May 27 2021, 17:57
Reviewer
Restricted Project
Differential Revision
D9563: Turn InvRequestTracker into a template class
Parents
rABC8f3895fd9f2a: Abstract out the TxRequestTracker public interface
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task