Move reindex progress globals to metrics.h/cpp
This commit is contained in:
parent
003cd8fd8f
commit
fc2501b63e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue