Limit setAskFor and retire requested entries only when a getdata returns.
commitebb25f4c23adbcb55796c402bafd6064a136f16f
authorGregory Maxwell <greg@xiph.org>
Mon, 23 Nov 2015 01:54:23 +0000 (23 01:54 +0000)
committerGregory Maxwell <greg@xiph.org>
Mon, 23 Nov 2015 01:54:23 +0000 (23 01:54 +0000)
tree4f9ccbb6e0e8d46a47690caec79112d5726e16f6
parent5029698186445bf3cd69d0e720f019c472661bff
Limit setAskFor and retire requested entries only when a getdata returns.

The setAskFor duplicate elimination was too eager and removed entries
 when we still had no getdata response, allowing the peer to keep
 INVing and not responding.
src/main.cpp
src/net.cpp
src/net.h