Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show All 24 Lines | |||||
#include <policy/policy.h> | #include <policy/policy.h> | ||||
#include <primitives/block.h> | #include <primitives/block.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <random.h> | #include <random.h> | ||||
#include <reverse_iterator.h> | #include <reverse_iterator.h> | ||||
#include <scheduler.h> | #include <scheduler.h> | ||||
#include <tinyformat.h> | #include <tinyformat.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <util/check.h> // For NDEBUG compile time check | |||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <memory> | #include <memory> | ||||
#include <typeinfo> | #include <typeinfo> | ||||
#if defined(NDEBUG) | |||||
#error "Bitcoin cannot be compiled without assertions." | |||||
#endif | |||||
/** Expiration time for orphan transactions in seconds */ | /** Expiration time for orphan transactions in seconds */ | ||||
static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60; | static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60; | ||||
/** Minimum time between orphan transactions expire time checks in seconds */ | /** Minimum time between orphan transactions expire time checks in seconds */ | ||||
static constexpr int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60; | static constexpr int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60; | ||||
/** How long to cache transactions in mapRelay for normal relay */ | /** How long to cache transactions in mapRelay for normal relay */ | ||||
static constexpr std::chrono::seconds RELAY_TX_CACHE_TIME{15 * 60}; | static constexpr std::chrono::seconds RELAY_TX_CACHE_TIME{15 * 60}; | ||||
/** | /** | ||||
* Headers download timeout expressed in microseconds. | * Headers download timeout expressed in microseconds. | ||||
▲ Show 20 Lines • Show All 5,243 Lines • Show Last 20 Lines |