mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Avoid returning many "inv" orphans
This commit is contained in:
parent
d4168c82be
commit
540ac4514d
1 changed files with 5 additions and 0 deletions
|
|
@ -3639,6 +3639,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||||
|
|
||||||
// Track requests for our stuff
|
// Track requests for our stuff
|
||||||
g_signals.Inventory(inv.hash);
|
g_signals.Inventory(inv.hash);
|
||||||
|
|
||||||
|
if (pfrom->nSendSize > (SendBufferSize() * 2)) {
|
||||||
|
Misbehaving(pfrom->GetId(), 50);
|
||||||
|
return error("send buffer size() = %u", pfrom->nSendSize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue