Page MenuHomePhabricator

scripted-diff: wallet/test: Use existing chainman
ClosedPublic

Authored by PiRK on Jun 29 2022, 10:17.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0655265d8d10: 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

Diff Detail

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