File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ CMessageHeader::CMessageHeader()
25
25
{
26
26
memcpy (pchMessageStart, Params ().MessageStart (), CMessageHeader::MESSAGE_START_SIZE);
27
27
memset (pchCommand, 0 , sizeof (pchCommand));
28
- nMessageSize = -1 ;
29
28
memset (pchChecksum, 0 , CHECKSUM_SIZE);
30
29
}
31
30
Original file line number Diff line number Diff line change 15
15
#include " uint256.h"
16
16
#include " version.h"
17
17
18
+ #include < limits>
18
19
#include < string>
19
20
20
21
extern bool fTestNet ;
@@ -52,7 +53,7 @@ class CMessageHeader
52
53
53
54
char pchMessageStart[MESSAGE_START_SIZE];
54
55
char pchCommand[COMMAND_SIZE];
55
- uint32_t nMessageSize;
56
+ uint32_t nMessageSize{std::numeric_limits< uint32_t >:: max ()} ;
56
57
uint8_t pchChecksum[CHECKSUM_SIZE];
57
58
};
58
59
You can’t perform that action at this time.
0 commit comments