Skip to content

Commit 57817e5

Browse files
committed
net: do not log "notfound" message as unknown.
1 parent 7caa108 commit 57817e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/net_processing.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,12 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR
19131913
pfrom->fRelayTxes = true;
19141914
}
19151915

1916+
else if (strCommand == NetMsgType::NOTFOUND) {
1917+
// We do not care about the NOTFOUND message (for now), but logging an Unknown Command
1918+
// message is undesirable as we transmit it ourselves.
1919+
return true;
1920+
}
1921+
19161922
else {
19171923
// Tier two msg type search
19181924
const std::vector<std::string>& allMessages = getTierTwoNetMessageTypes();

0 commit comments

Comments
 (0)