-BEGIN VERIFY SCRIPT- git ls-files -- src/test \ | grep -v '^src/test/fuzz' \ | 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\(\)->nHeight([^+-])@ActiveHeight()\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 [5/12]
https://github.com/bitcoin/bitcoin/pull/21866/commits/0d61634c066a7102d539e85e2b1a4ca15be9660a
Note: In addition to the change in the source material, this diff also uses of the ChainstaeManager::ActiveTip() and ChainstateManager::ActiveHeight()
shortcuts where applicable.