diff options
author | Carl Dong <contact@carldong.me> | 2020-10-26 15:27:24 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-01-28 14:15:26 -0500 |
commit | 3664a150ac7547c9336b571557af223d9e31aac9 (patch) | |
tree | 7fdc5b2030c92b6f675b58c870fed0d8a7f06a71 | |
parent | eae54e6e60d7ed05b29d8345c0bb055397149ce8 (diff) | |
download | bitcoin-3664a150ac7547c9336b571557af223d9e31aac9.tar.xz |
validation: Remove global LookupBlockIndex
-rw-r--r-- | src/validation.cpp | 5 | ||||
-rw-r--r-- | src/validation.h | 2 |
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); |