HomePhabricator

net_processing: move AlreadyHaveTx into PeerManageImpl

Description

net_processing: move AlreadyHaveTx into PeerManageImpl

Summary:
Allows making recentRejects and g_recent_confirmed_transactions members rather than globals, and remove need to pass mempool as argument.

This is a backport of core#20942 [2&3/9]
https://github.com/bitcoin/bitcoin/pull/20942/commits/eeac5062508c98fe58daaec471cdd27f3909b6ec#
https://github.com/bitcoin/bitcoin/pull/20942/commits/052d9bc7e52aea373a316f08d42460ead4ed16c8

Depends on D11433

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Dec 23 2020, 08:17
PiRKCommitted on May 10 2022, 15:14
PiRKPushed on May 10 2022, 15:13
Reviewer
Restricted Project
Differential Revision
D11434: net_processing: move AlreadyHaveTx into PeerManageImpl
Parents
rABC2e470f884524: net_processing: move some globals into PeerManagerImpl
Branches
Unknown
Tags
Unknown