Merge pull request #1347 from rebroad/FixAlreadyAskedFor

mapAlreadyAskedFor gets additions when AlreadyHave()
This commit is contained in:
Pieter Wuille 2012-06-27 08:06:57 -07:00
commit abbb9a829c

View file

@ -3158,8 +3158,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
pto->PushMessage("getdata", vGetData);
vGetData.clear();
}
mapAlreadyAskedFor[inv] = nNow;
}
mapAlreadyAskedFor[inv] = nNow;
pto->mapAskFor.erase(pto->mapAskFor.begin());
}
if (!vGetData.empty())