|
|
|
@ -1059,8 +1059,6 @@ uint32_t GetFetchFlags(CNode* pfrom, CBlockIndex* pprev, const Consensus::Params
@@ -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,
@@ -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()) |
|
|
|
|