From fa0dfdf447d5b84a1849dc823d8508463600136a Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 29 Jun 2020 10:30:03 -0400 Subject: refactor: Remove confusing BlockIndex global --- src/validation.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index fcaa62c9b..100171a0f 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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(); -- cgit v1.2.3