diff options
author | R E Broadley <rebroad+github@gmail.com> | 2016-09-12 15:54:05 +0700 |
---|---|---|
committer | R E Broadley <rebroad+github@gmail.com> | 2016-10-18 07:17:09 +0700 |
commit | a1919adab0e72e8b465f723099788d9cc00363da (patch) | |
tree | 6fcf90e657ca846d57f0c4ba4e7bc274ffabfc4f /src | |
parent | 49c5910372899a365fd6b57b9e227518e24541fa (diff) | |
download | bitcoin-a1919adab0e72e8b465f723099788d9cc00363da.tar.xz |
Report NodeId in misbehaving debug
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f3b0e3c22e..1e59f80e13 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1846,10 +1846,10 @@ void Misbehaving(NodeId pnode, int howmuch) int banscore = GetArg("-banscore", DEFAULT_BANSCORE_THRESHOLD); 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; } 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) |