Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
#define MIN_TRANSACTION_SIZE \ | #define MIN_TRANSACTION_SIZE \ | ||||
(::GetSerializeSize(CTransaction(), SER_NETWORK, PROTOCOL_VERSION)) | (::GetSerializeSize(CTransaction(), SER_NETWORK, PROTOCOL_VERSION)) | ||||
/** Default for DEFAULT_WHITELISTRELAY. */ | /** Default for DEFAULT_WHITELISTRELAY. */ | ||||
static const bool DEFAULT_WHITELISTRELAY = true; | static const bool DEFAULT_WHITELISTRELAY = true; | ||||
/** Default for DEFAULT_WHITELISTFORCERELAY. */ | /** Default for DEFAULT_WHITELISTFORCERELAY. */ | ||||
static const bool DEFAULT_WHITELISTFORCERELAY = true; | static const bool DEFAULT_WHITELISTFORCERELAY = true; | ||||
/** Default for -minrelaytxfee, minimum relay fee for transactions */ | /** Default for -minrelaytxfee, minimum relay fee for transactions */ | ||||
static const Amount DEFAULT_MIN_RELAY_TX_FEE(1000); | static const Amount DEFAULT_MIN_RELAY_TX_FEE(0); | ||||
//! -maxtxfee default | //! -maxtxfee default | ||||
static const Amount DEFAULT_TRANSACTION_MAXFEE(COIN / 10); | static const Amount DEFAULT_TRANSACTION_MAXFEE(COIN / 10); | ||||
//! 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 | /** -maxtxfee will warn if called with a higher fee than this amount (in | ||||
* satoshis */ | * 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 */ | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
/** Maximum feefilter broadcast delay after significant change. */ | /** Maximum feefilter broadcast delay after significant change. */ | ||||
static const unsigned int MAX_FEEFILTER_CHANGE_DELAY = 5 * 60; | static const unsigned int MAX_FEEFILTER_CHANGE_DELAY = 5 * 60; | ||||
/** Block download timeout base, expressed in millionths of the block interval | /** Block download timeout base, expressed in millionths of the block interval | ||||
* (i.e. 10 min) */ | * (i.e. 10 min) */ | ||||
static const int64_t BLOCK_DOWNLOAD_TIMEOUT_BASE = 1000000; | static const int64_t BLOCK_DOWNLOAD_TIMEOUT_BASE = 1000000; | ||||
/** Additional block download timeout per parallel downloading peer (i.e. 5 min) | /** Additional block download timeout per parallel downloading peer (i.e. 5 min) | ||||
*/ | */ | ||||
static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 500000; | static const int64_t BLOCK_DOWNLOAD_TIMEOUT_PER_PEER = 500000; | ||||
/** Continuously rate-limit free/priority transactions to | |||||
static const unsigned int DEFAULT_LIMITFREERELAY = 0; | * limiterfreerelay*1000 bytes per minute. */ | ||||
static const bool DEFAULT_RELAYPRIORITY = true; | static const unsigned int DEFAULT_LIMITFREERELAY = 20; | ||||
// Do *not* Require that free transactions have sufficient priority | |||||
// to be relayed (hence mined in the next block). | |||||
static const bool DEFAULT_RELAYPRIORITY = false; | |||||
static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60; | static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60; | ||||
/** Maximum age of our tip in seconds for us to be considered current for fee | /** Maximum age of our tip in seconds for us to be considered current for fee | ||||
* estimation */ | * estimation */ | ||||
static const int64_t MAX_FEE_ESTIMATION_TIP_AGE = 3 * 60 * 60; | static const int64_t MAX_FEE_ESTIMATION_TIP_AGE = 3 * 60 * 60; | ||||
/** Default for -permitbaremultisig */ | /** Default for -permitbaremultisig */ | ||||
static const bool DEFAULT_PERMIT_BAREMULTISIG = true; | static const bool DEFAULT_PERMIT_BAREMULTISIG = true; | ||||
static const bool DEFAULT_CHECKPOINTS_ENABLED = true; | static const bool DEFAULT_CHECKPOINTS_ENABLED = true; | ||||
▲ Show 20 Lines • Show All 526 Lines • Show Last 20 Lines |