Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static constexpr int64_t EXTRA_PEER_CHECK_INTERVAL = 45; | static constexpr int64_t EXTRA_PEER_CHECK_INTERVAL = 45; | ||||
/** | /** | ||||
* Minimum time an outbound-peer-eviction candidate must be connected for, in | * Minimum time an outbound-peer-eviction candidate must be connected for, in | ||||
* order to evict, in seconds. | * order to evict, in seconds. | ||||
*/ | */ | ||||
static constexpr int64_t MINIMUM_CONNECT_TIME = 30; | static constexpr int64_t MINIMUM_CONNECT_TIME = 30; | ||||
/** Default for BIP61 (sending reject messages) */ | |||||
static constexpr bool DEFAULT_ENABLE_BIP61 = true; | |||||
/** Enable BIP61 (sending reject messages) */ | |||||
extern bool g_enable_bip61; | |||||
class PeerLogicValidation final : public CValidationInterface, | class PeerLogicValidation final : public CValidationInterface, | ||||
public NetEventsInterface { | public NetEventsInterface { | ||||
private: | private: | ||||
CConnman *const connman; | CConnman *const connman; | ||||
public: | public: | ||||
explicit PeerLogicValidation(CConnman *connman, CScheduler &scheduler); | explicit PeerLogicValidation(CConnman *connman, CScheduler &scheduler); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |