Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Calculate the amount of disk space the block & undo files currently use. | * Calculate the amount of disk space the block & undo files currently use. | ||||
*/ | */ | ||||
uint64_t CalculateCurrentUsage(); | uint64_t CalculateCurrentUsage(); | ||||
/** | /** | ||||
* Mark one block file as pruned. | * Mark one block file as pruned. | ||||
*/ | */ | ||||
void PruneOneBlockFile(const int fileNumber); | void PruneOneBlockFile(const int fileNumber) EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* Actually unlink the specified files | * Actually unlink the specified files | ||||
*/ | */ | ||||
void UnlinkPrunedFiles(const std::set<int> &setFilesToPrune); | void UnlinkPrunedFiles(const std::set<int> &setFilesToPrune); | ||||
/** Flush all state, indexes and buffers to disk. */ | /** Flush all state, indexes and buffers to disk. */ | ||||
void FlushStateToDisk(); | void FlushStateToDisk(); | ||||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |