validation: Make BlockManager::LookupBlockIndex const

This commit is contained in:
Carl Dong
2021-03-17 16:58:57 -04:00
parent 88aead263c
commit 7e8b5ee814
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ namespace {
std::set<int> setDirtyFileInfo;
} // anon namespace
CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash)
CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) const
{
AssertLockHeld(cs_main);
assert(std::addressof(g_chainman.BlockIndex()) == std::addressof(m_block_index));