Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public: | ||||
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); | ||||
/** | /** | ||||
* Consider evicting an outbound peer based on the amount of time they've | * Consider evicting an outbound peer based on the amount of time they've | ||||
* been behind our tip. | * been behind our tip. | ||||
*/ | */ | ||||
void ConsiderEviction(CNode *pto, int64_t time_in_seconds); | void ConsiderEviction(CNode *pto, int64_t time_in_seconds) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | |||||
/** | /** | ||||
* Evict extra outbound peers. If we think our tip may be stale, connect to | * Evict extra outbound peers. If we think our tip may be stale, connect to | ||||
* an extra outbound. | * an extra outbound. | ||||
*/ | */ | ||||
void | void | ||||
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 | ||||
Show All 25 Lines |