MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / CheckDiskSpace

Function CheckDiskSpace

src/main.cpp:3765–3774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3763}
3764
3765bool CheckDiskSpace(uint64_t nAdditionalBytes)
3766{
3767 uint64_t nFreeBytesAvailable = boost::filesystem::space(GetDataDir()).available;
3768
3769 // Check for nMinDiskSpace bytes (currently 50MB)
3770 if (nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes)
3771 return AbortNode("Disk space is low!", _("Error: Disk space is low!"));
3772
3773 return true;
3774}
3775
3776FILE* OpenDiskFile(const CDiskBlockPos &pos, const char *prefix, bool fReadOnly)
3777{

Callers 4

AppInit2Function · 0.85
FlushStateToDiskFunction · 0.85
FindBlockPosFunction · 0.85
FindUndoPosFunction · 0.85

Calls 2

AbortNodeFunction · 0.85
_Function · 0.85

Tested by

no test coverage detected