Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 908 Lines • ▼ Show 20 Lines | void Misbehaving(NodeId pnode, int howmuch, const std::string &reason) | ||||
} else { | } else { | ||||
LogPrintf("%s: %s peer=%d (%d -> %d) reason: %s\n", __func__, | LogPrintf("%s: %s peer=%d (%d -> %d) reason: %s\n", __func__, | ||||
state->name, pnode, state->nMisbehavior - howmuch, | state->name, pnode, state->nMisbehavior - howmuch, | ||||
state->nMisbehavior, reason.c_str()); | state->nMisbehavior, reason.c_str()); | ||||
} | } | ||||
} | } | ||||
// overloaded variant of above to operate on CNode*s | // overloaded variant of above to operate on CNode*s | ||||
static void Misbehaving(CNode *node, int howmuch, const std::string &reason) { | static void Misbehaving(CNode *node, int howmuch, const std::string &reason) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | |||||
Misbehaving(node->GetId(), howmuch, reason); | Misbehaving(node->GetId(), howmuch, reason); | ||||
} | } | ||||
////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
// | // | ||||
// blockchain -> download logic notification | // blockchain -> download logic notification | ||||
// | // | ||||
▲ Show 20 Lines • Show All 3,337 Lines • Show Last 20 Lines |