aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-07-30 02:20:15 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-07-30 02:22:01 +0200
commitebefe7a00b46579cdd1e033a8c7fd8ce9aa578e4 (patch)
tree382a39172cd06a6993970866d26e01a2081838ec
parentbbcb8fd884335134065143047e9798dc8ec13445 (diff)
parent5c9e49d12c931f9c7ddaac0144739dcd7263e554 (diff)
downloadbitcoin-ebefe7a00b46579cdd1e033a8c7fd8ce9aa578e4.tar.xz
Merge #8427: net: Ignore `notfound` P2P messages
5c9e49d net: Ignore `notfound` P2P messages (Wladimir J. van der Laan)
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 622ec51422..81f09515f3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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);