Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Send queued protocol messages to be sent to a give node. | * Send queued protocol messages to be sent to a give node. | ||||
* | * | ||||
* @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); | |||||
void ConsiderEviction(CNode *pto, int64_t time_in_seconds); | void ConsiderEviction(CNode *pto, int64_t time_in_seconds); | ||||
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 | ||||
Show All 16 Lines |