mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-22 13:29:45 +00:00
Avoid returning many "inv" orphans
Rebased-From: 540ac45 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
This commit is contained in:
parent
d030936da2
commit
6eb5410d8f
@ -3606,6 +3606,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
||||
|
||||
// Track requests for our stuff
|
||||
g_signals.Inventory(inv.hash);
|
||||
|
||||
if (pfrom->nSendSize > (SendBufferSize() * 2)) {
|
||||
Misbehaving(pfrom->GetId(), 50);
|
||||
return error("send buffer size() = %u", pfrom->nSendSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user