Page MenuHomePhabricator

net: Remove g_relay_txes
ClosedPublic

Authored by Fabien on Jan 25 2022, 10:15.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC042e6fa41ef0: net: Remove g_relay_txes
Summary
g_relay_txes is only required inside net_processing and is set only once at startup. Instead of having a global, move it to be a const member of PeerManager.

This requires moving PushNodeVersion() into PeerManager, which also allows us to remove the connman argument.

Backport of core#20217.

Ref T1696.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jan 25 2022, 10:15
src/init.cpp
2362 ↗(On Diff #31936)

Note to reviewers: we don't need the intermediate arg due to code divergence with core (no fee policy estimator)

This revision is now accepted and ready to land.Jan 25 2022, 11:59
This revision was automatically updated to reflect the committed changes.