mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge pull request #4878
540ac45Avoid returning many "inv" orphans (Jeff Garzik)d4168c8Limit CNode::mapAskFor (Wladimir J. van der Laan)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user