mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 20:13:17 +02:00
Ignore unknown messages before VERACK
This commit is contained in:
@@ -2585,8 +2585,7 @@ void PeerLogicValidation::ProcessMessage(CNode& pfrom, const std::string& msg_ty
|
||||
}
|
||||
|
||||
if (!pfrom.fSuccessfullyConnected) {
|
||||
// Must have a verack message before anything else
|
||||
Misbehaving(pfrom.GetId(), 1, "non-verack message before version handshake");
|
||||
LogPrint(BCLog::NET, "Unsupported message \"%s\" prior to verack from peer=%d\n", SanitizeString(msg_type), pfrom.GetId());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user