```
-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