Skip to content

Commit ebefe7a

Browse files
committed
Merge #8427: net: Ignore notfound P2P messages
5c9e49d net: Ignore `notfound` P2P messages (Wladimir J. van der Laan)
2 parents bbcb8fd + 5c9e49d commit ebefe7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6145,6 +6145,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
61456145
}
61466146
}
61476147

6148+
else if (strCommand == NetMsgType::NOTFOUND) {
6149+
// We do not care about the NOTFOUND message, but logging an Unknown Command
6150+
// message would be undesirable as we transmit it ourselves.
6151+
}
6152+
61486153
else {
61496154
// Ignore unknown commands for extensibility
61506155
LogPrint("net", "Unknown command \"%s\" from peer=%d\n", SanitizeString(strCommand), pfrom->id);

0 commit comments

Comments
 (0)