aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-03-02 15:42:57 +1000
committerCarl Dong <contact@carldong.me>2022-03-09 14:32:47 -0500
commit5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b (patch)
tree8b28727e7425f6ffd9f7eb6d86c978befdbb1b23 /src/index
parent430acb7d2a3272977d5a66bf9a09bcd55ffd15cc (diff)
downloadbitcoin-5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b.tar.xz
refactor: more const annotations for uses of CBlockIndex*
Diffstat (limited to 'src/index')
-rw-r--r--src/index/coinstatsindex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/coinstatsindex.cpp b/src/index/coinstatsindex.cpp
index 386eb67ce9..69078708f9 100644
--- a/src/index/coinstatsindex.cpp
+++ b/src/index/coinstatsindex.cpp
@@ -277,7 +277,7 @@ bool CoinStatsIndex::Rewind(const CBlockIndex* current_tip, const CBlockIndex* n
{
LOCK(cs_main);
- CBlockIndex* iter_tip{m_chainstate->m_blockman.LookupBlockIndex(current_tip->GetBlockHash())};
+ const CBlockIndex* iter_tip{m_chainstate->m_blockman.LookupBlockIndex(current_tip->GetBlockHash())};
const auto& consensus_params{Params().GetConsensus()};
do {