HomePhabricator

scripted-diff: Rename pindexBestHeader, fHavePruned to m_best_header and…

Description

scripted-diff: Rename pindexBestHeader, fHavePruned to m_best_header and m_have_pruned

Summary:

-BEGIN VERIFY SCRIPT-
find_regex="\bpindexBestHeader\b" \
    && git grep -l -E "$find_regex" -- src \
        | xargs sed -i -E "s@$find_regex@m_best_header@g"
find_regex="\bfHavePruned\b" \
    && git grep -l -E "$find_regex" -- src \
        | xargs sed -i -E "s@$find_regex@m_have_pruned@g"
-END VERIFY SCRIPT-

This concludes backport of core#24909
https://github.com/bitcoin/bitcoin/pull/24909/commits/f0a2fb3c5dbf3c4bec7faf934baff3e723734b3f

Depends on D13047

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Carl Dong <contact@carldong.me>Authored on Jan 24 2023, 11:55
PiRKCommitted on Jan 24 2023, 13:29
PiRKPushed on Jan 24 2023, 13:29
Reviewer
Restricted Project
Differential Revision
D13048: scripted-diff: Rename pindexBestHeader, fHavePruned to m_best_header and m_have_pruned
Parents
rABC353b5d80b46a: Clear fHavePruned in BlockManager::Unload()
Branches
Unknown
Tags
Unknown