HomePhabricator

txorphanage: Move functions and data into class

Description

txorphanage: Move functions and data into class

Summary:
Collects all the orphan handling globals into a single member var in
net_processing, and ensures access is encapuslated into the interface
functions. Also adds doxygen comments for methods.

This is a backport of core#21148 [11/14]
https://github.com/bitcoin/bitcoin/pull/21148/commits/6bd4963c069bfd0af420e8a3fb724c3b693a1e76

Depends on D11489

Test Plan:
With clang and debug:
ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Jan 31 2021, 13:42
PiRKCommitted on May 19 2022, 16:06
PiRKPushed on May 19 2022, 16:07
Reviewer
Restricted Project
Differential Revision
D11490: txorphanage: Move functions and data into class
Parents
rABCec313f0eff80: orphanage: Extract EraseOrphansForBlock
Branches
Unknown
Tags
Unknown