Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | struct CNodeStateStats { | ||||
int nCommonHeight = -1; | int nCommonHeight = -1; | ||||
std::vector<int> vHeightInFlight; | std::vector<int> vHeightInFlight; | ||||
}; | }; | ||||
/** Get statistics from node state */ | /** Get statistics from node state */ | ||||
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | ||||
/** Increase a node's misbehavior score. */ | /** Increase a node's misbehavior score. */ | ||||
void Misbehaving(NodeId nodeid, int howmuch, const std::string &message = ""); | void Misbehaving(NodeId nodeid, int howmuch, const std::string &message = ""); | ||||
/** overloaded variant of above to operate on CNode*s */ | |||||
static inline void Misbehaving(CNode *node, int howmuch, | |||||
deadalnix: I'm not sure what this combination of qualifier does. | |||||
const std::string &message = "") | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | |||||
Misbehaving(node->GetId(), howmuch, message); | |||||
} | |||||
#endif // BITCOIN_NET_PROCESSING_H | #endif // BITCOIN_NET_PROCESSING_H |
I'm not sure what this combination of qualifier does.