coins: reset cachedCoinsUsage in Flush() only after the map is cleared

Prevents the counter from dropping to 0 while cacheCoins still holds objects
This commit is contained in:
Lőrinc 2025-04-18 11:23:27 +02:00
parent a7f8b5f13b
commit 2923d0055d

View file

@ -254,8 +254,8 @@ bool CCoinsViewCache::Flush() {
if (fOk) {
cacheCoins.clear();
ReallocateCache();
}
cachedCoinsUsage = 0;
}
return fOk;
}