Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | public: | ||||
* @param[in] pto The node which we are sending messages to. | * @param[in] pto The node which we are sending messages to. | ||||
* @param[in] interrupt Interrupt condition for processing threads | * @param[in] interrupt Interrupt condition for processing threads | ||||
* @return True if there is more work to be done | * @return True if there is more work to be done | ||||
*/ | */ | ||||
bool SendMessages(const Config &config, CNode *pto, | bool SendMessages(const Config &config, CNode *pto, | ||||
std::atomic<bool> &interrupt) override | std::atomic<bool> &interrupt) override | ||||
EXCLUSIVE_LOCKS_REQUIRED(pto->cs_sendProcessing); | EXCLUSIVE_LOCKS_REQUIRED(pto->cs_sendProcessing); | ||||
void ConsiderEviction(CNode *pto, int64_t time_in_seconds); | void ConsiderEviction(CNode *pto, int64_t time_in_seconds) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | |||||
void | void | ||||
CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); | CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); | ||||
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; | ||||
}; | }; | ||||
Show All 14 Lines |