HomePhabricator

[net processing] Move RelayTransaction into PeerManager

Description

[net processing] Move RelayTransaction into PeerManager

Summary:

It moves the RelayTransaction() function to be a member function of the PeerManager class. This is required in order to move the transaction inventory data into the Peer object, since Peer objects are only accessible from within PeerManager.

Backport of core#21162.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Jan 27 2021, 22:05
FabienCommitted on Oct 11 2022, 18:13
FabienPushed on Oct 11 2022, 18:13
Reviewer
Restricted Project
Differential Revision
D12204: [net processing] Move RelayTransaction into PeerManager
Parents
rABCe4bf48a7e017: p2p: Limit m_block_inv_mutex
Branches
Unknown
Tags
Unknown