Merge 4aa06f9447 into merged_master (Bitcoin PR bitcoin/bitcoin#23600)

This commit is contained in:
Byron Hambly 2023-05-31 10:16:38 +00:00
commit 1ff9a8afda
2 changed files with 1 additions and 4 deletions

View file

@ -2267,7 +2267,7 @@ bool CChainState::FlushStateToDisk(
fDoFullFlush = (mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical || fPeriodicFlush || fFlushForPrune;
// Write blocks and block index to disk.
if (fDoFullFlush || fPeriodicWrite) {
// Depend on nMinDiskSpace to ensure we can write block index
// Ensure we can write block index
if (!CheckDiskSpace(gArgs.GetBlocksDirPath())) {
return AbortNode(state, "Disk space is too low!", _("Disk space is too low!"));
}