trb

trb
Log | Files | Refs

commit 9be1f9b1443423f9f5a0ef80988866923da596e2
parent 4a7ed18efff0cc98f56f876f5d7e63b587816bd7
Author: Shinoa-Fores <btcinfo@sdf.org>
Date:   Wed, 13 Jan 2021 17:34:05 -0500

malleus_mikehearnificarum.vpatch

Diffstat:
Mbitcoin/src/main.cpp | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/bitcoin/src/main.cpp b/bitcoin/src/main.cpp @@ -1901,6 +1901,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) pfrom->PushMessage(inv.GetCommand(), (*mi).second); } } + else + { + pfrom->Misbehaving(100); + return error("BANNED peer issuing unknown inv type."); + } // Track requests for our stuff Inventory(inv.hash); @@ -2103,7 +2108,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) else { - // Ignore unknown commands for extensibility + // He who comes to us with a turd, by the turd shall perish. + pfrom->Misbehaving(100); + return error("BANNED peer issuing heathen command."); }