diff options
author | Carl Dong <contact@carldong.me> | 2020-10-14 16:48:17 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-05-27 13:50:11 -0400 |
commit | db33cde80fff749c6adff9e91fca5f27f4bb6278 (patch) | |
tree | 4e994189869837823ae4fde2c65cdbc11cfe7bf6 /src/index/coinstatsindex.cpp | |
parent | f4a47a1febfa35ab077f2a841fe31a8cd9618250 (diff) | |
download | bitcoin-db33cde80fff749c6adff9e91fca5f27f4bb6278.tar.xz |
index: Add chainstate member to BaseIndex
Diffstat (limited to 'src/index/coinstatsindex.cpp')
-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 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 { |