|
|
@ -4318,8 +4318,7 @@ bool ProcessMessages(CNode* pfrom) |
|
|
|
// Checksum
|
|
|
|
// Checksum
|
|
|
|
CDataStream& vRecv = msg.vRecv; |
|
|
|
CDataStream& vRecv = msg.vRecv; |
|
|
|
uint256 hash = Hash(vRecv.begin(), vRecv.begin() + nMessageSize); |
|
|
|
uint256 hash = Hash(vRecv.begin(), vRecv.begin() + nMessageSize); |
|
|
|
unsigned int nChecksum = 0; |
|
|
|
unsigned int nChecksum = ReadLE32((unsigned char*)&hash); |
|
|
|
memcpy(&nChecksum, &hash, sizeof(nChecksum)); |
|
|
|
|
|
|
|
if (nChecksum != hdr.nChecksum) |
|
|
|
if (nChecksum != hdr.nChecksum) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrintf("ProcessMessages(%s, %u bytes): CHECKSUM ERROR nChecksum=%08x hdr.nChecksum=%08x\n", |
|
|
|
LogPrintf("ProcessMessages(%s, %u bytes): CHECKSUM ERROR nChecksum=%08x hdr.nChecksum=%08x\n", |
|
|
|