HomePhabricator

[net processing] Add Peer& arg to MaybeDiscourageAndDisconnect()

Description

[net processing] Add Peer& arg to MaybeDiscourageAndDisconnect()

Summary:
Refactor only. No change in behaviour.

Partial backport of core#20721:
https://github.com/bitcoin/bitcoin/pull/20721/commits/f8b3058992b507f3a6aac9d4e2db00102ae1b197

Ref T1696.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1696

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

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Feb 12 2021, 11:22
FabienCommitted on Jan 25 2022, 16:38
FabienPushed on Jan 25 2022, 16:38
Reviewer
Restricted Project
Differential Revision
D10873: [net processing] Add Peer& arg to MaybeDiscourageAndDisconnect()
Parents
rABCc85369a06efc: net_processing: move Peer definition to .cpp
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task