Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
/** 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; | ||||
static const unsigned int DEFAULT_LIMITFREERELAY = 0; | |||||
static const bool DEFAULT_RELAYPRIORITY = true; | |||||
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 */ | ||||
▲ Show 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | |||||
/** Prune block files up to a given height */ | /** Prune block files up to a given height */ | ||||
void PruneBlockFilesManual(int nManualPruneHeight); | void PruneBlockFilesManual(int nManualPruneHeight); | ||||
/** | /** | ||||
* (try to) add transaction to memory pool | * (try to) add transaction to memory pool | ||||
*/ | */ | ||||
bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, | bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, | ||||
CValidationState &state, const CTransactionRef &tx, | CValidationState &state, const CTransactionRef &tx, | ||||
bool fLimitFree, bool *pfMissingInputs, | bool *pfMissingInputs, | ||||
bool fOverrideMempoolLimit = false, | bool fOverrideMempoolLimit = false, | ||||
const Amount nAbsurdFee = Amount::zero(), | const Amount nAbsurdFee = Amount::zero(), | ||||
bool test_accept = false) | bool test_accept = false) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** Convert CValidationState to a human-readable message for logging */ | /** Convert CValidationState to a human-readable message for logging */ | ||||
std::string FormatStateMessage(const CValidationState &state); | std::string FormatStateMessage(const CValidationState &state); | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |