mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Limit CNode::mapAskFor
Tighten resource constraints on CNode.
This commit is contained in:
parent
8bc0a0173e
commit
d4168c82be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user