aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-03-17 16:58:57 -0400
committerCarl Dong <contact@carldong.me>2021-03-30 13:52:22 -0400
commit7e8b5ee814b0b8c34acb20637ed4fc988ccba555 (patch)
treed4a3c8d2243656d4e1cbe94eced53860bc339ac0 /src/validation.cpp
parent88aead263c61d86e5f836028f517cfbf2a575498 (diff)
validation: Make BlockManager::LookupBlockIndex const
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index d1b9efe7ba..b5c19971b4 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -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));