aboutsummaryrefslogtreecommitdiff
path: root/src/index/txindex.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-01 10:24:58 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-07-15 13:54:09 +0200
commitfaa54e375782b21cbc2761c763128131c569e903 (patch)
treee85e2453bcf35354ad3e672d8411f3a2c6ea9c3e /src/index/txindex.cpp
parentfa27f03b4943540aa2eab283d4cf50ad4a1a01f8 (diff)
Move pblocktree global to BlockManager
Diffstat (limited to 'src/index/txindex.cpp')
-rw-r--r--src/index/txindex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp
index 782e557478..cde9821f3d 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, m_chainstate->m_chain.GetLocator())) {
+ if (!m_db->MigrateData(*m_chainstate->m_blockman.m_block_tree_db, m_chainstate->m_chain.GetLocator())) {
return false;
}