mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-09 07:05:34 +01:00
Don't use global (external) symbols for symbols that are used in only one translation unit
This commit is contained in:
@@ -78,7 +78,7 @@ bool CBlockIndexWorkComparator::operator()(const CBlockIndex *pa, const CBlockIn
|
||||
return false;
|
||||
}
|
||||
|
||||
CChainState g_chainstate;
|
||||
static CChainState g_chainstate;
|
||||
|
||||
CChainState& ChainstateActive() { return g_chainstate; }
|
||||
|
||||
@@ -1049,7 +1049,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)
|
||||
{
|
||||
@@ -4762,4 +4762,5 @@ public:
|
||||
delete (*it1).second;
|
||||
mapBlockIndex.clear();
|
||||
}
|
||||
} instance_of_cmaincleanup;
|
||||
};
|
||||
static CMainCleanup instance_of_cmaincleanup;
|
||||
|
||||
Reference in New Issue
Block a user