refactor: Remove confusing BlockIndex global

This commit is contained in:
MarcoFalke
2020-06-29 10:30:03 -04:00
parent 8edfc1715a
commit fa0dfdf447
5 changed files with 22 additions and 32 deletions

View File

@@ -1321,12 +1321,6 @@ bool CChainState::IsInitialBlockDownload() const
static CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr;
BlockMap& BlockIndex()
{
LOCK(::cs_main);
return g_chainman.m_blockman.m_block_index;
}
static void AlertNotify(const std::string& strMessage)
{
uiInterface.NotifyAlertChanged();