Move reindex progress globals to metrics.h/cpp

This commit is contained in:
gladcow 2020-03-05 16:38:22 +03:00
parent 003cd8fd8f
commit fc2501b63e
4 changed files with 4 additions and 4 deletions

View File

@ -69,8 +69,6 @@ int nScriptCheckThreads = 0;
bool fExperimentalMode = false;
bool fImporting = false;
std::atomic_bool fReindex(false);
std::atomic<size_t> nSizeReindexed(0); // valid only during reindex
std::atomic<size_t> nFullSizeToReindex(1); // valid only during reindex
bool fTxIndex = false;
bool fInsightExplorer = false; // insightexplorer
bool fAddressIndex = false; // insightexplorer

View File

@ -140,8 +140,6 @@ extern CConditionVariable cvBlockChange;
extern bool fExperimentalMode;
extern bool fImporting;
extern std::atomic_bool fReindex;
extern std::atomic<size_t> nSizeReindexed; // valid only during reindex
extern std::atomic<size_t> nFullSizeToReindex; // valid only during reindex
extern int nScriptCheckThreads;
extern bool fTxIndex;

View File

@ -78,6 +78,8 @@ AtomicCounter ehSolverRuns;
AtomicCounter solutionTargetChecks;
static AtomicCounter minedBlocks;
AtomicTimer miningTimer;
std::atomic<size_t> nSizeReindexed(0); // valid only during reindex
std::atomic<size_t> nFullSizeToReindex(1); // valid only during reindex
static boost::synchronized_value<std::list<uint256>> trackedBlocks;

View File

@ -64,6 +64,8 @@ extern AtomicCounter transactionsValidated;
extern AtomicCounter ehSolverRuns;
extern AtomicCounter solutionTargetChecks;
extern AtomicTimer miningTimer;
extern std::atomic<size_t> nSizeReindexed; // valid only during reindex
extern std::atomic<size_t> nFullSizeToReindex; // valid only during reindex
void TrackMinedBlock(uint256 hash);