Browse Source

Merge #8427: net: Ignore `notfound` P2P messages

5c9e49d net: Ignore `notfound` P2P messages (Wladimir J. van der Laan)
0.14
Pieter Wuille 9 years ago
parent
commit
ebefe7a00b
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 5
      src/main.cpp

5
src/main.cpp

@ -6145,6 +6145,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, @@ -6145,6 +6145,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
}
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);

Loading…
Cancel
Save