aboutsummaryrefslogtreecommitdiff
path: root/src/index/coinstatsindex.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-10-14 16:48:17 -0400
committerCarl Dong <contact@carldong.me>2021-05-27 13:50:11 -0400
commitdb33cde80fff749c6adff9e91fca5f27f4bb6278 (patch)
tree4e994189869837823ae4fde2c65cdbc11cfe7bf6 /src/index/coinstatsindex.cpp
parentf4a47a1febfa35ab077f2a841fe31a8cd9618250 (diff)
downloadbitcoin-db33cde80fff749c6adff9e91fca5f27f4bb6278.tar.xz
index: Add chainstate member to BaseIndex
Diffstat (limited to 'src/index/coinstatsindex.cpp')
-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 7c8b2b186e..6f841f1662 100644
--- a/src/index/coinstatsindex.cpp
+++ b/src/index/coinstatsindex.cpp
@@ -266,7 +266,7 @@ bool CoinStatsIndex::Rewind(const CBlockIndex* current_tip, const CBlockIndex* n
{
LOCK(cs_main);
- CBlockIndex* iter_tip{g_chainman.m_blockman.LookupBlockIndex(current_tip->GetBlockHash())};
+ CBlockIndex* iter_tip{m_chainstate->m_blockman.LookupBlockIndex(current_tip->GetBlockHash())};
const auto& consensus_params{Params().GetConsensus()};
do {