Do not make it trivial for inbound peers to generate log entries
commitbe9f38c6131ab0c7ad96e4f6f3d8b5ae6f870ea9
authorMatt Corallo <git@bluematt.me>
Mon, 30 Oct 2017 22:56:37 +0000 (30 18:56 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2017 23:41:18 +0000 (9 18:41 -0500)
treec1eb34294a5c39304b360c541d07d0185c0eabb5
parent3788a8479b4efd481f3e91419bcf347113375112
Do not make it trivial for inbound peers to generate log entries

We should generally avoid writing to debug.log unconditionally for
inbound peers which misbehave (the peer being about to be banned
being an exception, since they cannot do this twice).

To avoid removing logs for outbound peers, a new log is added to
notify users when a new outbound peer is connected which mimics
the version print.
src/net.cpp
src/net_processing.cpp
src/util.h