validation: Remove global LookupBlockIndex

This commit is contained in:
Carl Dong 2020-10-26 15:27:24 -04:00
parent eae54e6e60
commit 3664a150ac
2 changed files with 0 additions and 7 deletions

View File

@ -167,11 +167,6 @@ namespace {
std::set<int> setDirtyFileInfo;
} // anon namespace
CBlockIndex* LookupBlockIndex(const uint256& hash)
{
return g_chainman.m_blockman.LookupBlockIndex(hash);
}
CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash)
{
AssertLockHeld(cs_main);

View File

@ -311,8 +311,6 @@ public:
bool VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview, int nCheckLevel, int nCheckDepth);
};
CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
/** Find the last common block between the parameter chain and a locator. */
CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& locator) EXCLUSIVE_LOCKS_REQUIRED(cs_main);