Limit response to getblocks to half of output buffer size
authorPieter Wuille <pieter.wuille@gmail.com>
Thu, 30 Jun 2011 21:29:44 +0000 (23:29 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Fri, 1 Jul 2011 07:39:44 +0000 (09:39 +0200)
commit497317453422611a077f7f195eb193d3bb597a9c
tree3063ec6de27084fd37a62d72bdefb8eee28558c7
parent44d16327c19f033169171678e58bd779301e87d5
Limit response to getblocks to half of output buffer size

Introduce SendBufferSize() and ReceiveBufferSize(), and limit
the blocks sent as response to the "getblocks" message to
half of the active send buffer size.
src/main.cpp
src/net.cpp
src/net.h