Report NodeId in misbehaving debug
This commit is contained in:
parent
49c5910372
commit
a1919adab0
1 changed files with 2 additions and 2 deletions
|
@ -1846,10 +1846,10 @@ void Misbehaving(NodeId pnode, int howmuch)
|
||||||
int banscore = GetArg("-banscore", DEFAULT_BANSCORE_THRESHOLD);
|
int banscore = GetArg("-banscore", DEFAULT_BANSCORE_THRESHOLD);
|
||||||
if (state->nMisbehavior >= banscore && state->nMisbehavior - howmuch < banscore)
|
if (state->nMisbehavior >= banscore && state->nMisbehavior - howmuch < banscore)
|
||||||
{
|
{
|
||||||
LogPrintf("%s: %s (%d -> %d) BAN THRESHOLD EXCEEDED\n", __func__, state->name, state->nMisbehavior-howmuch, state->nMisbehavior);
|
LogPrintf("%s: %s peer=%d (%d -> %d) BAN THRESHOLD EXCEEDED\n", __func__, state->name, pnode, state->nMisbehavior-howmuch, state->nMisbehavior);
|
||||||
state->fShouldBan = true;
|
state->fShouldBan = true;
|
||||||
} else
|
} else
|
||||||
LogPrintf("%s: %s (%d -> %d)\n", __func__, state->name, state->nMisbehavior-howmuch, state->nMisbehavior);
|
LogPrintf("%s: %s peer=%d (%d -> %d)\n", __func__, state->name, pnode, state->nMisbehavior-howmuch, state->nMisbehavior);
|
||||||
}
|
}
|
||||||
|
|
||||||
void static InvalidChainFound(CBlockIndex* pindexNew)
|
void static InvalidChainFound(CBlockIndex* pindexNew)
|
||||||
|
|
Loading…
Reference in a new issue