Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | |||||
* Blocks and whitelisted receivers bypass this, outbound peers get half this | * Blocks and whitelisted receivers bypass this, outbound peers get half this | ||||
* delay. | * delay. | ||||
*/ | */ | ||||
static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5; | static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5; | ||||
/** | /** | ||||
* Maximum number of inventory items to send per transmission. | * Maximum number of inventory items to send per transmission. | ||||
* Limits the impact of low-fee transaction floods. | * Limits the impact of low-fee transaction floods. | ||||
*/ | */ | ||||
static const unsigned int INVENTORY_BROADCAST_MAX = | static const unsigned int INVENTORY_BROADCAST_MAX_PER_MB = | ||||
7 * INVENTORY_BROADCAST_INTERVAL; | 7 * INVENTORY_BROADCAST_INTERVAL; | ||||
/** Average delay between feefilter broadcasts in seconds. */ | /** Average delay between feefilter broadcasts in seconds. */ | ||||
static const unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60; | static const unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60; | ||||
/** 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; | ||||
▲ Show 20 Lines • Show All 524 Lines • Show Last 20 Lines |