Skip to content

Commit 3664a15

Browse files
committed
validation: Remove global LookupBlockIndex
1 parent eae54e6 commit 3664a15

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/validation.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ namespace {
167167
std::set<int> setDirtyFileInfo;
168168
} // anon namespace
169169

170-
CBlockIndex* LookupBlockIndex(const uint256& hash)
171-
{
172-
return g_chainman.m_blockman.LookupBlockIndex(hash);
173-
}
174-
175170
CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash)
176171
{
177172
AssertLockHeld(cs_main);

src/validation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ class CVerifyDB {
311311
bool VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview, int nCheckLevel, int nCheckDepth);
312312
};
313313

314-
CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
315-
316314
/** Find the last common block between the parameter chain and a locator. */
317315
CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& locator) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
318316

0 commit comments

Comments
 (0)