Merge pull request #4878

540ac45 Avoid returning many "inv" orphans (Jeff Garzik)
d4168c8 Limit CNode::mapAskFor (Wladimir J. van der Laan)
This commit is contained in:
Wladimir J. van der Laan 2014-09-10 16:47:40 +02:00
commit d6af9856b0
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
3 changed files with 9 additions and 0 deletions

View file

@ -2106,6 +2106,8 @@ CNode::~CNode()
void CNode::AskFor(const CInv& inv)
{
if (mapAskFor.size() > MAPASKFOR_MAX_SZ)
return;
// We're using mapAskFor as a priority queue,
// the key is the earliest time the request can be sent
int64_t nRequestTime;