We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 246daf1 + 8c4129b commit 3e306eeCopy full SHA for 3e306ee
src/rpc/blockchain.cpp
@@ -2258,13 +2258,15 @@ class CoinsViewScanReserver
2258
if (g_scan_in_progress.exchange(true)) {
2259
return false;
2260
}
2261
+ CHECK_NONFATAL(g_scan_progress == 0);
2262
m_could_reserve = true;
2263
return true;
2264
2265
2266
~CoinsViewScanReserver() {
2267
if (m_could_reserve) {
2268
g_scan_in_progress = false;
2269
+ g_scan_progress = 0;
2270
2271
2272
};
@@ -2381,7 +2383,6 @@ static RPCHelpMan scantxoutset()
2381
2383
std::vector<CTxOut> input_txos;
2382
2384
std::map<COutPoint, Coin> coins;
2385
g_should_abort_scan = false;
- g_scan_progress = 0;
2386
int64_t count = 0;
2387
std::unique_ptr<CCoinsViewCursor> pcursor;
2388
CBlockIndex* tip;
0 commit comments