HomePhabricator

scripted-diff: [net processing] Rename PeerLogicValidation to PeerManager

Description

scripted-diff: [net processing] Rename PeerLogicValidation to PeerManager

Summary:

-BEGIN VERIFY SCRIPT-
sed -i 's/PeerLogicValidation/PeerManager/g' $(git grep -l
PeerLogicValidation ./src ./test)
sed -i 's/peer_logic/peerman/g' $(git grep -l peer_logic ./src ./test)
-END VERIFY SCRIPT-

PeerLogicValidation was originally net_processing's implementation to
the validation interface. It has since grown to contain much of
net_processing's logic. Therefore rename it to reflect its
responsibilities.

Partial backport (3/9) of core PR19791:
https://github.com/bitcoin/bitcoin/pull/19791/commits/58bd369b0ddd3383f7bdf7840912d18b96545f91

Since the name conflicts with avalanche's PeerManager in tests, the full
namespaced class name is used.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Aug 29 2020, 09:31
FabienCommitted on Jan 23 2021, 15:02
FabienPushed on Jan 23 2021, 15:04
Reviewer
Restricted Project
Differential Revision
D9037: scripted-diff: [net processing] Rename PeerLogicValidation to PeerManager
Parents
rABC42c418fa9977: Add Trunk Based Development link to CONTRIBUTING
Branches
Unknown
Tags
Unknown