Increase nMinDiskSpace to 1GB

This commit is contained in:
Duke Leto
2021-12-12 11:12:10 -05:00
parent a4792404d6
commit b4f38e2a77
2 changed files with 3 additions and 3 deletions

View File

@@ -5697,9 +5697,9 @@ bool CheckDiskSpace(uint64_t nAdditionalBytes)
if(fDebug) {
fprintf(stderr,"Free bytes on disk: %lu\n", nFreeBytesAvailable);
}
// Check for nMinDiskSpace bytes (currently 50MB)
// Check for nMinDiskSpace bytes (defined in main.h)
if (nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes)
return AbortNode("Disk space is low!", _("Error: Disk space is low!"));
return AbortNode("Disk space is low!!!", _("Error: Disk space is low!!!"));
return true;
}

View File

@@ -172,7 +172,7 @@ extern int64_t nMaxTipAge;
extern CBlockIndex *pindexBestHeader;
/** Minimum disk space required - used in CheckDiskSpace() */
static const uint64_t nMinDiskSpace = 52428800;
static const uint64_t nMinDiskSpace = 1073741824; // 1GB
/** Pruning-related variables and constants */
/** True if any block files have ever been pruned. */