HomePhabricator

[net] Tighten scope in net_processing

Description

[net] Tighten scope in net_processing

Summary:
This is a backport of Core PR13417:

  • Rescope g_enable_bip61 to net_processing
  • [move-only] Move things only referenced in net_processing out of header file
  • Restrict as much as possible in net_processing to translation unit

Mark everything else static or in an anonymous namespace.

  • Make g_enable_bip61 a member variable of PeerLogicValidation

Test Plan:

make check
./test/functional/test_runner.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Jesse Cohen <jc@jc.lol>Authored on Jun 8 2018, 18:54
deadalnixCommitted on Sep 13 2019, 06:14
deadalnixPushed on Sep 13 2019, 07:28
Reviewer
Restricted Project
Differential Revision
D3965: [net] Tighten scope in net_processing
Parents
rSTAGINGe922dff50075: Add documentation to PeerLogicValidation interface and related functions
Branches
Unknown
Tags
Unknown