aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'net.h')
-rw-r--r--net.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/net.h b/net.h
index e12a8e1129..372e57fbbc 100644
--- a/net.h
+++ b/net.h
@@ -117,9 +117,9 @@ public:
}
// Message size
- if (nMessageSize > 0x10000000)
+ if (nMessageSize > MAX_SIZE)
{
- printf("CMessageHeader::IsValid() : nMessageSize too large %u\n", nMessageSize);
+ printf("CMessageHeader::IsValid() : (%s, %u bytes) nMessageSize > MAX_SIZE\n", GetCommand().c_str(), nMessageSize);
return false;
}
@@ -466,7 +466,6 @@ extern CNode* pnodeLocalHost;
extern uint64 nLocalHostNonce;
extern array<int, 10> vnThreadsRunning;
extern SOCKET hListenSocket;
-extern int64 nThreadSocketHandlerHeartbeat;
extern vector<CNode*> vNodes;
extern CCriticalSection cs_vNodes;