From 3664a150ac7547c9336b571557af223d9e31aac9 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 26 Oct 2020 15:27:24 -0400 Subject: [PATCH] validation: Remove global LookupBlockIndex --- src/validation.cpp | 5 ----- src/validation.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index f441fb7163a..cabceca91ba 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -167,11 +167,6 @@ namespace { std::set setDirtyFileInfo; } // anon namespace -CBlockIndex* LookupBlockIndex(const uint256& hash) -{ - return g_chainman.m_blockman.LookupBlockIndex(hash); -} - CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) { AssertLockHeld(cs_main); diff --git a/src/validation.h b/src/validation.h index 1c3852d158b..e829c0c1c54 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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);