diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-01-04 09:32:29 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2017-01-04 10:10:35 -0500 |
commit | 0e973d970a2114c11f4a95f09721d977da7f0a94 (patch) | |
tree | 022ac7793bd8263b6ffed1384991931ac5a764d4 /src/net_processing.cpp | |
parent | 60425870d78cf2bef1fce926ad53f51166c6a3f0 (diff) |
net: remove redundant max sendbuffer size check
This is left-over from before there was proper accounting. Hitting 2x the
sendbuffer size should not be possible.
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index f53a4b2636..3d38995c50 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1059,8 +1059,6 @@ uint32_t GetFetchFlags(CNode* pfrom, CBlockIndex* pprev, const Consensus::Params bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived, const CChainParams& chainparams, CConnman& connman, std::atomic<bool>& interruptMsgProc) { - unsigned int nMaxSendBufferSize = connman.GetSendBufferSize(); - LogPrint("net", "received: %s (%u bytes) peer=%d\n", SanitizeString(strCommand), vRecv.size(), pfrom->id); if (IsArgSet("-dropmessagestest") && GetRand(GetArg("-dropmessagestest", 0)) == 0) { @@ -1413,11 +1411,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, // Track requests for our stuff GetMainSignals().Inventory(inv.hash); - - if (pfrom->nSendSize > (nMaxSendBufferSize * 2)) { - Misbehaving(pfrom->GetId(), 50); - return error("send buffer size() = %u", pfrom->nSendSize); - } } if (!vToFetch.empty()) |