diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-07-29 17:42:12 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-07-29 17:44:01 +0200 |
commit | 5c9e49d12c931f9c7ddaac0144739dcd7263e554 (patch) | |
tree | 382a39172cd06a6993970866d26e01a2081838ec /src | |
parent | bbcb8fd884335134065143047e9798dc8ec13445 (diff) | |
download | bitcoin-5c9e49d12c931f9c7ddaac0144739dcd7263e554.tar.xz |
net: Ignore `notfound` P2P messages
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 5 |
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); |