Cory Fields c45b9fb54c net: correctly ban before the handshake is complete
7a8c251901 made a change to avoid getting into SendMessages() until the
version handshake (VERSION + VERACK) is complete. That was done to avoid
leaking out messages to nodes who could connect, but never bothered sending
us their version/verack.

Unfortunately, the ban tally and possible disconnect are done as part of
SendMessages(). So after 7a8c251901, if a peer managed to do something
bannable before completing the handshake (say send 100 non-version messages
before their version), they wouldn't actually end up getting
disconnected/banned. That's fixed here by checking the banscore as part of
ProcessMessages() in addition to SendMessages().
2017-02-13 18:55:34 -05:00
..
2017-01-27 21:22:35 +01:00
2016-12-01 16:14:45 -08:00
2017-02-06 14:20:05 +01:00
2017-01-27 21:22:35 +01:00
2016-12-12 11:08:47 -08:00
2017-01-27 21:22:35 +01:00
2017-01-04 11:56:17 -08:00
2017-01-27 21:22:35 +01:00
2017-01-14 21:45:32 +01:00
2017-01-27 21:22:35 +01:00
2017-01-04 13:24:19 -05:00
2017-01-27 21:22:35 +01:00
2017-01-27 21:22:35 +01:00
2017-01-27 21:22:35 +01:00
2017-01-27 21:22:35 +01:00