mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-12 08:31:11 +00:00
Ignore unknown messages before VERACK
This commit is contained in:
parent
1cf73fb8eb
commit
675e55e013
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user