Skip to content

Commit 1230890

Browse files
committed
Merge #8936: Report NodeId in misbehaving debug
a1919ad Report NodeId in misbehaving debug (R E Broadley)
2 parents 05998da + a1919ad commit 1230890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,10 +1858,10 @@ void Misbehaving(NodeId pnode, int howmuch)
18581858
int banscore = GetArg("-banscore", DEFAULT_BANSCORE_THRESHOLD);
18591859
if (state->nMisbehavior >= banscore && state->nMisbehavior - howmuch < banscore)
18601860
{
1861-
LogPrintf("%s: %s (%d -> %d) BAN THRESHOLD EXCEEDED\n", __func__, state->name, state->nMisbehavior-howmuch, state->nMisbehavior);
1861+
LogPrintf("%s: %s peer=%d (%d -> %d) BAN THRESHOLD EXCEEDED\n", __func__, state->name, pnode, state->nMisbehavior-howmuch, state->nMisbehavior);
18621862
state->fShouldBan = true;
18631863
} else
1864-
LogPrintf("%s: %s (%d -> %d)\n", __func__, state->name, state->nMisbehavior-howmuch, state->nMisbehavior);
1864+
LogPrintf("%s: %s peer=%d (%d -> %d)\n", __func__, state->name, pnode, state->nMisbehavior-howmuch, state->nMisbehavior);
18651865
}
18661866

18671867
void static InvalidChainFound(CBlockIndex* pindexNew)

0 commit comments

Comments
 (0)