aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-10-26 15:27:24 -0400
committerCarl Dong <contact@carldong.me>2021-01-28 14:15:26 -0500
commit3664a150ac7547c9336b571557af223d9e31aac9 (patch)
tree7fdc5b2030c92b6f675b58c870fed0d8a7f06a71 /src
parenteae54e6e60d7ed05b29d8345c0bb055397149ce8 (diff)
validation: Remove global LookupBlockIndex
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp5
-rw-r--r--src/validation.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index f441fb7163..cabceca91b 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -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);
diff --git a/src/validation.h b/src/validation.h
index 1c3852d158..e829c0c1c5 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);