HomePhabricator

scripted-diff: net_processing: Use existing chainman

Description

scripted-diff: net_processing: Use existing chainman

Summary:

-BEGIN VERIFY SCRIPT-
sed -i -E \
    -e 's/g_chainman/m_chainman/g' \
    -e 's@([^:])(Chain(state|)Active)@\1::\2@g' \
    -e 's@::Chain(state|)Active\(\)@m_chainman.ActiveChain\1()@g' \
    -- src/net_processing.cpp
arc lint
-END VERIFY SCRIPT-

This is a backport of core#21270 [11/12]
https://github.com/bitcoin/bitcoin/pull/21270/commits/272d993e759e7fcfe883b84e9a2a3be3c75177ec

Depends on D11495

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
PiRKAuthored on May 19 2022, 09:32
PiRKPushed on May 19 2022, 18:52
Reviewer
Restricted Project
Differential Revision
D11497: scripted-diff: net_processing: Use existing chainman
Parents
rABCe0cf6c0afd32: move getAvalancheVoteForBlock to PeerManagerImpl
Branches
Unknown
Tags
Unknown