Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | public: | ||||
* 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 */ | ||||
void ProcessMessage(const Config &config, CNode &pfrom, | void ProcessMessage(const Config &config, CNode &pfrom, | ||||
const std::string &msg_type, CDataStream &vRecv, | const std::string &msg_type, CDataStream &vRecv, | ||||
int64_t nTimeReceived, | const std::chrono::microseconds time_received, | ||||
const std::atomic<bool> &interruptMsgProc); | const std::atomic<bool> &interruptMsgProc); | ||||
/** | /** | ||||
* Increment peer's misbehavior score. If the new value >= | * Increment peer's misbehavior score. If the new value >= | ||||
* DISCOURAGEMENT_THRESHOLD, mark the node to be discouraged, meaning the | * DISCOURAGEMENT_THRESHOLD, mark the node to be discouraged, meaning the | ||||
* peer might be disconnected and added to the discouragement filter. Public | * peer might be disconnected and added to the discouragement filter. Public | ||||
* for unit testing. | * for unit testing. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |