aboutsummaryrefslogtreecommitdiff
path: root/src/node/interfaces.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-18 12:35:52 -0400
committerCarl Dong <contact@carldong.me>2022-04-19 14:36:18 -0400
commitf0a2fb3c5dbf3c4bec7faf934baff3e723734b3f (patch)
treef9ca702d34d9736f804eb3fc5a1a75208640d260 /src/node/interfaces.cpp
parenta4014021258319941716d6338c18667462a06280 (diff)
downloadbitcoin-f0a2fb3c5dbf3c4bec7faf934baff3e723734b3f.tar.xz
scripted-diff: Rename pindexBestHeader, fHavePruned
...to m_best_header and m_have_pruned -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-
Diffstat (limited to 'src/node/interfaces.cpp')
-rw-r--r--src/node/interfaces.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index d444de022b..954bd1c31d 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -212,7 +212,7 @@ public:
bool getHeaderTip(int& height, int64_t& block_time) override
{
LOCK(::cs_main);
- auto best_header = chainman().pindexBestHeader;
+ auto best_header = chainman().m_best_header;
if (best_header) {
height = best_header->nHeight;
block_time = best_header->GetBlockTime();
@@ -645,7 +645,7 @@ public:
bool havePruned() override
{
LOCK(cs_main);
- return m_node.chainman->m_blockman.fHavePruned;
+ return m_node.chainman->m_blockman.m_have_pruned;
}
bool isReadyToBroadcast() override { return !node::fImporting && !node::fReindex && !isInitialBlockDownload(); }
bool isInitialBlockDownload() override {