aboutsummaryrefslogtreecommitdiff
path: root/src/node
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/node
parentfa27f03b4943540aa2eab283d4cf50ad4a1a01f8 (diff)
Move pblocktree global to BlockManager
Diffstat (limited to 'src/node')
-rw-r--r--src/node/blockstorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp
index 0083b74b33..90f7ba191d 100644
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -518,7 +518,7 @@ void ThreadImport(ChainstateManager& chainman, std::vector<fs::path> vImportFile
}
nFile++;
}
- pblocktree->WriteReindexing(false);
+ WITH_LOCK(::cs_main, chainman.m_blockman.m_block_tree_db->WriteReindexing(false));
fReindex = false;
LogPrintf("Reindexing finished\n");
// To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked):