Page MenuHomePhabricator

[net] Tighten scope in net_processing

Authored by deadalnix on Aug 28 2019, 17:37.



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

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Aug 28 2019, 17:37
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 28 2019, 17:37
Fabien requested changes to this revision.Aug 30 2019, 13:17
Fabien added a subscriber: Fabien.

Otherwise LGTM.

1070 ↗(On Diff #11001)

There is a dependency missing here:

This revision now requires changes to proceed.Aug 30 2019, 13:17
deadalnix updated this revision to Diff 11243.Sep 12 2019, 15:11

Rebase on top of D4052

Fabien accepted this revision.Sep 12 2019, 18:27
This revision is now accepted and ready to land.Sep 12 2019, 18:27
This revision was automatically updated to reflect the committed changes.