mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
make CMessageHeader a dumb storage class
It shouldn't know or care about bitcoind's chain param selection
This commit is contained in:
@@ -4307,7 +4307,7 @@ bool ProcessMessages(CNode* pfrom)
|
||||
|
||||
// Read header
|
||||
CMessageHeader& hdr = msg.hdr;
|
||||
if (!hdr.IsValid())
|
||||
if (!hdr.IsValid(Params().MessageStart()))
|
||||
{
|
||||
LogPrintf("PROCESSMESSAGE: ERRORS IN HEADER %s peer=%d\n", SanitizeString(hdr.GetCommand()), pfrom->id);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user