Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | public: | ||||
CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); | CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); | ||||
/** | /** | ||||
* If we have extra outbound peers, try to disconnect the one with the | * If we have extra outbound peers, try to disconnect the one with the | ||||
* oldest block announcement. | * oldest block announcement. | ||||
*/ | */ | ||||
void EvictExtraOutboundPeers(int64_t time_in_seconds); | void EvictExtraOutboundPeers(int64_t time_in_seconds); | ||||
private: | private: | ||||
//!< Next time to check for stale tip | //! Next time to check for stale tip | ||||
int64_t m_stale_tip_check_time; | int64_t m_stale_tip_check_time; | ||||
/** Enable BIP61 (sending reject messages) */ | /** Enable BIP61 (sending reject messages) */ | ||||
const bool m_enable_bip61; | const bool m_enable_bip61; | ||||
}; | }; | ||||
struct CNodeStateStats { | struct CNodeStateStats { | ||||
int nMisbehavior = 0; | int nMisbehavior = 0; | ||||
Show All 11 Lines |