Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | |||||
extern bool fHavePruned; | extern bool fHavePruned; | ||||
/** True if we're running in -prune mode. */ | /** True if we're running in -prune mode. */ | ||||
extern bool fPruneMode; | extern bool fPruneMode; | ||||
/** Number of MiB of block files that we're trying to stay below. */ | /** Number of MiB of block files that we're trying to stay below. */ | ||||
extern uint64_t nPruneTarget; | extern uint64_t nPruneTarget; | ||||
/** Block files containing a block-height within MIN_BLOCKS_TO_KEEP of | /** Block files containing a block-height within MIN_BLOCKS_TO_KEEP of | ||||
* chainActive.Tip() will not be pruned. */ | * chainActive.Tip() will not be pruned. */ | ||||
static const unsigned int MIN_BLOCKS_TO_KEEP = 288; | static const unsigned int MIN_BLOCKS_TO_KEEP = 288; | ||||
/** Minimum blocks required to signal NODE_NETWORK_LIMITED */ | |||||
static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 288; | |||||
static const signed int DEFAULT_CHECKBLOCKS = 6; | static const signed int DEFAULT_CHECKBLOCKS = 6; | ||||
static const unsigned int DEFAULT_CHECKLEVEL = 3; | static const unsigned int DEFAULT_CHECKLEVEL = 3; | ||||
/** | /** | ||||
* Require that user allocate at least 550MB for block & undo files (blk???.dat | * Require that user allocate at least 550MB for block & undo files (blk???.dat | ||||
* and rev???.dat) | * and rev???.dat) | ||||
* At 1MB per block, 288 blocks = 288MB. | * At 1MB per block, 288 blocks = 288MB. | ||||
▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines |