--- a/trb 6946935425bfeb84f2c0ee2a555d4f72462a0a765e55cec741c37ba8fe98a591086f4ddc6084317a0ee4c0d5afefbca954c3236aa16395672be1a304aba76fbc +++ b/trb 194e918a7f43019fbd5f112cd6bcb6192af9defb48bb536ceece160dae62e973a7a057f4fc8055202db6e21baa7c2e74f6a5bcb6f82077dcbdd1cd5d942c36ad @@ -9527,7 +9527,7 @@ #endif ############################################################################## -97825 @ ./bitcoin/src/main.cpp +98087 @ ./bitcoin/src/main.cpp ############################################################################## // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers @@ -11432,6 +11432,11 @@ 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); @@ -11634,7 +11639,9 @@ 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."); }