Skip to content

Commit cc24eff

Browse files
committed
net: remove redundant max sendbuffer size check
1 parent 32ab0c0 commit cc24eff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5246,8 +5246,6 @@ void static ProcessGetData(CNode* pfrom, CConnman& connman, std::atomic<bool>& i
52465246
bool fRequestedSporksIDB = false;
52475247
bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vRecv, int64_t nTimeReceived, CConnman& connman, std::atomic<bool>& interruptMsgProc)
52485248
{
5249-
unsigned int nMaxSendBufferSize = connman.GetSendBufferSize();
5250-
52515249
LogPrint(BCLog::NET, "received: %s (%u bytes) peer=%d\n", SanitizeString(strCommand), vRecv.size(), pfrom->id);
52525250
if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) {
52535251
LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n");
@@ -5496,11 +5494,6 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR
54965494

54975495
// Track requests for our stuff
54985496
GetMainSignals().Inventory(inv.hash);
5499-
5500-
if (pfrom->nSendSize > (nMaxSendBufferSize * 2)) {
5501-
Misbehaving(pfrom->GetId(), 50);
5502-
return error("send buffer size() = %u", pfrom->nSendSize);
5503-
}
55045497
}
55055498

55065499
if (!vToFetch.empty())

0 commit comments

Comments
 (0)