MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CalculateCurrentUsage

Function CalculateCurrentUsage

src/validation.cpp:3858–3867  ·  view source on GitHub ↗

Calculate the amount of disk space the block & undo files currently use */

Source from the content-addressed store, hash-verified

3856
3857/* Calculate the amount of disk space the block & undo files currently use */
3858uint64_t CalculateCurrentUsage()
3859{
3860 LOCK(cs_LastBlockFile);
3861
3862 uint64_t retval = 0;
3863 for (const CBlockFileInfo &file : vinfoBlockFile) {
3864 retval += file.nSize + file.nUndoSize;
3865 }
3866 return retval;
3867}
3868
3869/* Prune a block file (modify associated database entries)*/
3870void PruneOneBlockFile(const int fileNumber)

Callers 2

FindFilesToPruneFunction · 0.85
getblockchaininfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected