Move ::fImporting to BlockManager

This commit is contained in:
MarcoFalke
2023-01-03 13:09:55 +01:00
parent fa442b1377
commit fa9bd7be47
3 changed files with 5 additions and 8 deletions

View File

@@ -26,7 +26,6 @@
#include <unordered_map>
namespace node {
std::atomic_bool fImporting(false);
std::atomic_bool fReindex(false);
bool CBlockIndexWorkComparator::operator()(const CBlockIndex* pa, const CBlockIndex* pb) const
@@ -867,7 +866,7 @@ void ThreadImport(ChainstateManager& chainman, std::vector<fs::path> vImportFile
ScheduleBatchPriority();
{
ImportingNow imp{fImporting};
ImportingNow imp{chainman.m_blockman.m_importing};
// -reindex
if (fReindex) {