Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 13 Lines | |||||
#include "amount.h" | #include "amount.h" | ||||
#include "blockfileinfo.h" | #include "blockfileinfo.h" | ||||
#include "chain.h" | #include "chain.h" | ||||
#include "coins.h" | #include "coins.h" | ||||
#include "consensus/consensus.h" | #include "consensus/consensus.h" | ||||
#include "fs.h" | #include "fs.h" | ||||
#include "protocol.h" // For CMessageHeader::MessageMagic | #include "protocol.h" // For CMessageHeader::MessageMagic | ||||
#include "script/script_error.h" | #include "script/script_error.h" | ||||
#include "serialize.h" | |||||
#include "sync.h" | #include "sync.h" | ||||
#include "versionbits.h" | #include "versionbits.h" | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <exception> | #include <exception> | ||||
#include <map> | #include <map> | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | |||||
* 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 = | ||||
7 * INVENTORY_BROADCAST_INTERVAL; | 7 * MAX_SIZE / 1000000 * 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 606 Lines • Show Last 20 Lines |