Initial implementation of abortrescan

This commit is contained in:
Duke Leto
2022-10-19 05:12:12 -04:00
parent 29ec7b5fb6
commit 6fda12612d
3 changed files with 50 additions and 0 deletions

View File

@@ -807,6 +807,13 @@ public:
bool fSweepEnabled = false;
bool fSweepExternalEnabled = false;
bool fSweepRunning = false;
std::atomic<bool> fAbortRescan{false};
// abort current rescan
void AbortRescan() { fAbortRescan = true; }
// Are we currently aborting a rescan?
bool IsAbortingRescan() const { return fAbortRescan; }
// Are we currently rescanning?
bool fRescanning = false;
// Current height of our rescan