diff options
author | Carl Dong <contact@carldong.me> | 2021-03-17 16:58:57 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-30 13:52:22 -0400 |
commit | 7e8b5ee814b0b8c34acb20637ed4fc988ccba555 (patch) | |
tree | d4a3c8d2243656d4e1cbe94eced53860bc339ac0 /src/validation.h | |
parent | 88aead263c61d86e5f836028f517cfbf2a575498 (diff) | |
download | bitcoin-7e8b5ee814b0b8c34acb20637ed4fc988ccba555.tar.xz |
validation: Make BlockManager::LookupBlockIndex const
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index 2ff5f4ac87..21e63947fa 100644 --- a/src/validation.h +++ b/src/validation.h @@ -457,7 +457,7 @@ public: const CChainParams& chainparams, CBlockIndex** ppindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); - CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + CBlockIndex* LookupBlockIndex(const uint256& hash) const 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); |