diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-03-02 15:42:57 +1000 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-03-09 14:32:47 -0500 |
commit | 5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b (patch) | |
tree | 8b28727e7425f6ffd9f7eb6d86c978befdbb1b23 /src/index | |
parent | 430acb7d2a3272977d5a66bf9a09bcd55ffd15cc (diff) | |
download | bitcoin-5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b.tar.xz |
refactor: more const annotations for uses of CBlockIndex*
Diffstat (limited to 'src/index')
-rw-r--r-- | src/index/coinstatsindex.cpp | 2 |
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 { |