net: Ignore `notfound` P2P messages

This commit is contained in:
Wladimir J. van der Laan 2016-07-29 17:42:12 +02:00 committed by Simon
parent 1218603f73
commit e496b2e391
1 changed files with 6 additions and 2 deletions

View File

@ -5082,8 +5082,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
}
else
{
else if (strCommand == NetMsgType::NOTFOUND) {
// We do not care about the NOTFOUND message, but logging an Unknown Command
// message would be undesirable as we transmit it ourselves.
}
else {
// Ignore unknown commands for extensibility
LogPrint("net", "Unknown command \"%s\" from peer=%d\n", SanitizeString(strCommand), pfrom->id);
}