Merge 0b68fca700 into merged_master (Bitcoin PR #16092)

This commit is contained in:
Andrew Poelstra 2020-11-06 15:20:15 +00:00
commit f60ef72524
4 changed files with 10 additions and 7 deletions

View file

@ -80,7 +80,7 @@ bool CBlockIndexWorkComparator::operator()(const CBlockIndex *pa, const CBlockIn
return false;
}
CChainState g_chainstate;
static CChainState g_chainstate;
CChainState& ChainstateActive() { return g_chainstate; }
@ -1105,7 +1105,7 @@ bool CChainState::IsInitialBlockDownload() const
return false;
}
CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr;
static CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr;
static void AlertNotify(const std::string& strMessage)
{
@ -5045,7 +5045,8 @@ public:
delete (*it1).second;
mapBlockIndex.clear();
}
} instance_of_cmaincleanup;
};
static CMainCleanup instance_of_cmaincleanup;
// ELEMENTS:
/* This function has two major purposes: