Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024; | static const unsigned int BLOCK_DOWNLOAD_WINDOW = 1024; | ||||
/** Time to wait (in seconds) between writing blocks/block index to disk. */ | /** Time to wait (in seconds) between writing blocks/block index to disk. */ | ||||
static const unsigned int DATABASE_WRITE_INTERVAL = 60 * 60; | static const unsigned int DATABASE_WRITE_INTERVAL = 60 * 60; | ||||
/** Time to wait (in seconds) between flushing chainstate to disk. */ | /** Time to wait (in seconds) between flushing chainstate to disk. */ | ||||
static const unsigned int DATABASE_FLUSH_INTERVAL = 24 * 60 * 60; | static const unsigned int DATABASE_FLUSH_INTERVAL = 24 * 60 * 60; | ||||
/** Maximum length of reject messages. */ | /** Maximum length of reject messages. */ | ||||
static const unsigned int MAX_REJECT_MESSAGE_LENGTH = 111; | static const unsigned int MAX_REJECT_MESSAGE_LENGTH = 111; | ||||
/** Average delay between local address broadcasts in seconds. */ | |||||
static const unsigned int AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL = 24 * 60 * 60; | |||||
/** Average delay between peer address broadcasts in seconds. */ | |||||
static const unsigned int AVG_ADDRESS_BROADCAST_INTERVAL = 30; | |||||
/** | |||||
* Average delay between trickled inventory transmissions in seconds. | |||||
* Blocks and whitelisted receivers bypass this, outbound peers get half this | |||||
* delay. | |||||
*/ | |||||
static const unsigned int INVENTORY_BROADCAST_INTERVAL = 5; | |||||
/** | |||||
* Maximum number of inventory items to send per transmission. | |||||
* Limits the impact of low-fee transaction floods. | |||||
*/ | |||||
static const unsigned int INVENTORY_BROADCAST_MAX_PER_MB = | |||||
7 * INVENTORY_BROADCAST_INTERVAL; | |||||
/** Average delay between feefilter broadcasts in seconds. */ | |||||
static const unsigned int AVG_FEEFILTER_BROADCAST_INTERVAL = 10 * 60; | |||||
/** Maximum feefilter broadcast delay after significant change. */ | |||||
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; | ||||
▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines |