aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-07-29 17:42:12 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-07-29 17:44:01 +0200
commit5c9e49d12c931f9c7ddaac0144739dcd7263e554 (patch)
tree382a39172cd06a6993970866d26e01a2081838ec /src/main.cpp
parentbbcb8fd884335134065143047e9798dc8ec13445 (diff)
net: Ignore `notfound` P2P messages
Diffstat (limited to 'src/main.cpp')
-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);