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)
committerAlistair Buxton <a.j.buxton@gmail.com>
Sun, 18 Mar 2012 03:03:24 +0000 (03:03 +0000)
commitbb13d056ea332030a3b960bf2756a36de77e05b8
treef7557336fd4e2ccb0d6448609feef33ab02e7d68
parent840f69c582b35391d38524e5216991836035d1db
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