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/txindex.cpp | |
parent | f4a47a1febfa35ab077f2a841fe31a8cd9618250 (diff) | |
download | bitcoin-db33cde80fff749c6adff9e91fca5f27f4bb6278.tar.xz |
index: Add chainstate member to BaseIndex
Diffstat (limited to 'src/index/txindex.cpp')
-rw-r--r-- | src/index/txindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp index 3feefe8619..09984b1abf 100644 --- a/src/index/txindex.cpp +++ b/src/index/txindex.cpp @@ -204,7 +204,7 @@ bool TxIndex::Init() // Attempt to migrate txindex from the old database to the new one. Even if // chain_tip is null, the node could be reindexing and we still want to // delete txindex records in the old database. - if (!m_db->MigrateData(*pblocktree, ::ChainActive().GetLocator())) { + if (!m_db->MigrateData(*pblocktree, m_chainstate->m_chain.GetLocator())) { return false; } |