Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | public: | ||||
* 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); | 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(); | ||||
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) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** Process a single message from a peer. Public for fuzz testing */ | /** Process a single message from a peer. Public for fuzz testing */ | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |