mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Move ::fImporting to BlockManager
This commit is contained in:
parent
fa442b1377
commit
fa9bd7be47
3 changed files with 5 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue