mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
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
a7f8b5f13b
commit
2923d0055d
1 changed files with 1 additions and 1 deletions
|
@ -254,8 +254,8 @@ bool CCoinsViewCache::Flush() {
|
|||
if (fOk) {
|
||||
cacheCoins.clear();
|
||||
ReallocateCache();
|
||||
cachedCoinsUsage = 0;
|
||||
}
|
||||
cachedCoinsUsage = 0;
|
||||
return fOk;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue