Skip to content

Commit

Permalink
Ban peers that send us MNLISTDIFF messages
Browse files Browse the repository at this point in the history
These are only meant to be sent to SPV clients
  • Loading branch information
codablock committed Sep 3, 2018
1 parent c7f75af commit fced9a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,14 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
}


else if (strCommand == NetMsgType::MNLISTDIFF) {
// we have never requested this
LOCK(cs_main);
Misbehaving(pfrom->id, 100);
LogPrint("net", "received not-requested mnlistdiff. peer=%d\n", pfrom->id);
}


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.
Expand Down

0 comments on commit fced9a4

Please sign in to comment.