File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2021,13 +2021,15 @@ class CoinsViewScanReserver
2021
2021
if (g_scan_in_progress.exchange (true )) {
2022
2022
return false ;
2023
2023
}
2024
+ CHECK_NONFATAL (g_scan_progress == 0 );
2024
2025
m_could_reserve = true ;
2025
2026
return true ;
2026
2027
}
2027
2028
2028
2029
~CoinsViewScanReserver () {
2029
2030
if (m_could_reserve) {
2030
2031
g_scan_in_progress = false ;
2032
+ g_scan_progress = 0 ;
2031
2033
}
2032
2034
}
2033
2035
};
@@ -2140,7 +2142,6 @@ UniValue scantxoutset(const JSONRPCRequest& request)
2140
2142
std::vector<CTxOut> input_txos;
2141
2143
std::map<COutPoint, Coin> coins;
2142
2144
g_should_abort_scan = false ;
2143
- g_scan_progress = 0 ;
2144
2145
int64_t count = 0 ;
2145
2146
std::unique_ptr<CCoinsViewCursor> pcursor;
2146
2147
CBlockIndex* tip;
You can’t perform that action at this time.
0 commit comments