aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-07-29 17:42:12 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2016-09-21 02:43:47 +0000
commit69d1cd202d432bd6b8a6cda2187c148bcf1f6c2e (patch)
tree7985a7c596c4557809b97b8cd8eec33ad0c34f42 /src
parentf70be14f8fe4fd72f77d57d05c6c4d4f1e28b7f9 (diff)
downloadbitcoin-69d1cd202d432bd6b8a6cda2187c148bcf1f6c2e.tar.xz
net: Ignore `notfound` P2P messages
Github-Pull: #8427 Rebased-From: 5c9e49d12c931f9c7ddaac0144739dcd7263e554
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8f519dee11..01cd410da1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6161,6 +6161,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);