aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-01-18 17:21:08 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2018-01-24 12:18:29 +0100
commitd3a185a33b7bc09e4ca998f42f1f9aea8177ef8a (patch)
tree03951b5ebc0b7302b4399d066e688eb7fbfc4372 /src/bench
parent898f560b55aba2070f188b0223ef2beefcdede8b (diff)
downloadbitcoin-d3a185a33b7bc09e4ca998f42f1f9aea8177ef8a.tar.xz
net: Move misbehaving logging to net logging category
This moves the error messages for misbehavior (when available) into the line that reports the misbehavior, as well as moves the logging to the `net` category. This is a continuation of #11583 and avoids serious-looking errors due to misbehaving peers. To do this, Misbehaving() gains an optional `message` argument. E.g. change: 2018-01-18 16:02:27 Misbehaving: x.x.x.x:62174 peer=164603 (80 -> 100) BAN THRESHOLD EXCEEDED 2018-01-18 16:02:27 ERROR: non-continuous headers sequence to 2018-01-18 16:02:27 Misbehaving: x.x.x.x:62174 peer=164603 (80 -> 100) BAN THRESHOLD EXCEEDED: non-continuous headers sequence
Diffstat (limited to 'src/bench')
0 files changed, 0 insertions, 0 deletions