Merge #11583: Do not make it trivial for inbound peers to generate log entries
commit37ffa16933953565dcab5c0d7e0ee1ebb6e349c3
authorWladimir J. van der Laan <laanwj@gmail.com>
Mon, 11 Dec 2017 15:44:02 +0000 (11 16:44 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Mon, 11 Dec 2017 16:06:22 +0000 (11 17:06 +0100)
tree69f21301e6f16ded9ebe5693120d54c4173ef139
parent8ab6c0b09e4e734e3033d81fe0a25f09ca74ba26
parentbe9f38c6131ab0c7ad96e4f6f3d8b5ae6f870ea9
Merge #11583: Do not make it trivial for inbound peers to generate log entries

be9f38c Do not make it trivial for inbound peers to generate log entries (Matt Corallo)

Pull request description:

  Based on #11580 because I'm lazy.

  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).

Tree-SHA512: 8e59c8d08d00b1527951b30f4842d010a4c2fc440503ade112baa2c1b9afd0e0d1c5c2df83dde25183a242af45089cf9b9f873b71796771232ffb6c5fc6cc0cc
src/net.cpp
src/net_processing.cpp
src/util.h