mirror of https://github.com/bitcoin/bitcoin.git
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:
parent
62c600f79a
commit
f1791d64b4
|
@ -254,8 +254,8 @@ bool CCoinsViewCache::Flush() {
|
|||
if (fOk) {
|
||||
cacheCoins.clear();
|
||||
ReallocateCache();
|
||||
}
|
||||
cachedCoinsUsage = 0;
|
||||
}
|
||||
return fOk;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue