Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
//! Discourage users to set fees higher than this amount (in satoshis) per kB | //! Discourage users to set fees higher than this amount (in satoshis) per kB | ||||
static const Amount HIGH_TX_FEE_PER_KB(COIN / 100); | static const Amount HIGH_TX_FEE_PER_KB(COIN / 100); | ||||
/** | /** | ||||
* -maxtxfee will warn if called with a higher fee than this amount (in satoshis | * -maxtxfee will warn if called with a higher fee than this amount (in satoshis | ||||
*/ | */ | ||||
static const Amount HIGH_MAX_TX_FEE(100 * HIGH_TX_FEE_PER_KB); | static const Amount HIGH_MAX_TX_FEE(100 * HIGH_TX_FEE_PER_KB); | ||||
/** Default for -limitancestorcount, max number of in-mempool ancestors */ | /** Default for -limitancestorcount, max number of in-mempool ancestors */ | ||||
static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25; | static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25; | ||||
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool | /** | ||||
* ancestors */ | * Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool | ||||
* ancestors. | |||||
*/ | |||||
static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101; | static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101; | ||||
/** Default for -limitdescendantcount, max number of in-mempool descendants */ | /** Default for -limitdescendantcount, max number of in-mempool descendants */ | ||||
static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25; | static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25; | ||||
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool | /** | ||||
* descendants */ | * Default for -limitdescendantsize, maximum kilobytes of in-mempool | ||||
* descendants. | |||||
*/ | |||||
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101; | static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101; | ||||
/** Default for -mempoolexpiry, expiration time for mempool transactions in | /** | ||||
* hours */ | * Default for -mempoolexpiry, expiration time for mempool transactions in | ||||
* hours. | |||||
*/ | |||||
static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; | static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; | ||||
/** The maximum size of a blk?????.dat file (since 0.8) */ | /** The maximum size of a blk?????.dat file (since 0.8) */ | ||||
static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB | static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB | ||||
/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */ | /** The pre-allocation chunk size for blk?????.dat files (since 0.8) */ | ||||
static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB | static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB | ||||
/** The pre-allocation chunk size for rev?????.dat files (since 0.8) */ | /** The pre-allocation chunk size for rev?????.dat files (since 0.8) */ | ||||
static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB | static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
/** Pruning-related variables and constants */ | /** Pruning-related variables and constants */ | ||||
/** True if any block files have ever been pruned. */ | /** True if any block files have ever been pruned. */ | ||||
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 | /** | ||||
* chainActive.Tip() will not be pruned. */ | * Block files containing a block-height within MIN_BLOCKS_TO_KEEP of | ||||
* 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 */ | /** Minimum blocks required to signal NODE_NETWORK_LIMITED */ | ||||
static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 288; | 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; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |