Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
/** Get statistics from node state */ | /** Get statistics from node state */ | ||||
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | ||||
/** | /** | ||||
* 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 peer | * DISCOURAGEMENT_THRESHOLD, mark the node to be discouraged, meaning the peer | ||||
* might be disconnected and added to the discouragement filter. | * might be disconnected and added to the discouragement filter. | ||||
*/ | */ | ||||
void Misbehaving(NodeId nodeid, int howmuch, const std::string &message = "") | void Misbehaving(const NodeId nodeid, const int howmuch, | ||||
const std::string &message = "") | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** Relay transaction to every node */ | /** Relay transaction to every node */ | ||||
void RelayTransaction(const TxId &txid, const CConnman &connman); | void RelayTransaction(const TxId &txid, const CConnman &connman); | ||||
#endif // BITCOIN_NET_PROCESSING_H | #endif // BITCOIN_NET_PROCESSING_H |