File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ namespace {
169169 std::set<int > setDirtyFileInfo;
170170} // anon namespace
171171
172- CBlockIndex* BlockManager::LookupBlockIndex (const uint256& hash)
172+ CBlockIndex* BlockManager::LookupBlockIndex (const uint256& hash) const
173173{
174174 AssertLockHeld (cs_main);
175175 assert (std::addressof (g_chainman.BlockIndex ()) == std::addressof (m_block_index));
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ class BlockManager
457457 const CChainParams& chainparams,
458458 CBlockIndex** ppindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
459459
460- CBlockIndex* LookupBlockIndex (const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
460+ CBlockIndex* LookupBlockIndex (const uint256& hash) const EXCLUSIVE_LOCKS_REQUIRED(cs_main);
461461
462462 /* * Find the last common block between the parameter chain and a locator. */
463463 CBlockIndex* FindForkInGlobalIndex (const CChain& chain, const CBlockLocator& locator) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
You can’t perform that action at this time.
0 commit comments