When disconnecting a node, clear the received buffer so that we do
authorAlistair Buxton <a.j.buxton@gmail.com>
Sun, 18 Mar 2012 03:03:24 +0000 (03:03 +0000)
committerLuke Dashjr <luke-jr+git@utopios.org>
Thu, 22 Mar 2012 20:19:26 +0000 (16:19 -0400)
commit04dc79f1cc19b48531cc9a16ca502eac34d7e95b
treeb70795f5074877257ec7c1e901970a945b913bfe
parentb6751ed1b2a71e07cd3a8af4f02ce64fec39fe88
When disconnecting a node, clear the received buffer so that we do
not process any already received messages.

The primary reason to do this is if a node spams hundreds of messages
and we ban them, we don't want to continue processing the rest of it.
src/net.cpp