Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | bool ProcessNewBlockHeaders(const Config &config, | ||||
const std::vector<CBlockHeader> &block, | const std::vector<CBlockHeader> &block, | ||||
CValidationState &state, | CValidationState &state, | ||||
const CBlockIndex **ppindex = nullptr, | const CBlockIndex **ppindex = nullptr, | ||||
CBlockHeader *first_invalid = nullptr); | CBlockHeader *first_invalid = nullptr); | ||||
/** | /** | ||||
* Check whether enough disk space is available for an incoming block. | * Check whether enough disk space is available for an incoming block. | ||||
*/ | */ | ||||
bool CheckDiskSpace(uint64_t nAdditionalBytes = 0); | bool CheckDiskSpace(uint64_t nAdditionalBytes = 0, bool blocks_dir = false); | ||||
/** | /** | ||||
* Open a block file (blk?????.dat). | * Open a block file (blk?????.dat). | ||||
*/ | */ | ||||
FILE *OpenBlockFile(const CDiskBlockPos &pos, bool fReadOnly = false); | FILE *OpenBlockFile(const CDiskBlockPos &pos, bool fReadOnly = false); | ||||
/** | /** | ||||
* Translation to a filesystem path. | * Translation to a filesystem path. | ||||
▲ Show 20 Lines • Show All 366 Lines • Show Last 20 Lines |