HomePhabricator

scripted-diff: wallet/test: Use existing chainman

Description

scripted-diff: wallet/test: Use existing chainman

Summary:

-BEGIN VERIFY SCRIPT-
git ls-files -- src/wallet/test \
    | xargs sed -i -E \
            -e 's@g_chainman\.m_blockman@m_node.chainman->m_blockman@g' \
            -e 's@([^:])(Chain(state|)Active)@\1::\2@g' \
            -e 's@::Chain(state|)Active\(\)@m_node.chainman->ActiveChain\1()@g' \
            -e 's@ActiveChain\(\)\.Tip\(\)@ActiveTip()@g' \
            -e 's@ActiveChain\(\)\.Height\(\)@ActiveHeight()@g'
arc lint
-END VERIFY SCRIPT-

This is a backport of core#21866 [7/12]
https://github.com/bitcoin/bitcoin/pull/21866/commits/6c15de129cd645bf0547cb184003fae131b95b83

Test Plan: ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jun 29 2022, 08:44
PiRKPushed on Jun 30 2022, 09:02
Reviewer
Restricted Project
Differential Revision
D11683: scripted-diff: wallet/test: Use existing chainman
Parents
rABC88f0dc11af50: fuzz: Initialize a TestingSetup for test_one_input
Branches
Unknown
Tags
Unknown