Skip to content

Commit 589db87

Browse files
committed
validation: don't erase coins cache on prune flushes
1 parent 0e89187 commit 589db87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2902,7 +2902,7 @@ bool Chainstate::FlushStateToDisk(
29022902
return FatalError(m_chainman.GetNotifications(), state, _("Disk space is too low!"));
29032903
}
29042904
// Flush the chainstate (which may refer to block index entries).
2905-
const auto empty_cache{(mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical || fFlushForPrune};
2905+
const auto empty_cache{(mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical};
29062906
if (empty_cache ? !CoinsTip().Flush() : !CoinsTip().Sync()) {
29072907
return FatalError(m_chainman.GetNotifications(), state, _("Failed to write to coin database."));
29082908
}

0 commit comments

Comments
 (0)