From 66fcbe7dd8a85a9277c882b94e19e07cd739d612 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 27 Jan 2014 05:36:28 +0400 Subject: [PATCH] Disconnect buggy clients automatically. --- src/main.cpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4f10bfe..fa8e764 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3096,6 +3096,13 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) return true; } + if (pfrom->nVersion < 60010) + { + printf("partner %s using a buggy client %d, disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion); + pfrom->fDisconnect = true; + return true; + } + // record my external IP reported by peer if (addrFrom.IsRoutable() && addrMe.IsRoutable()) addrSeenByPeer = addrMe; -- 1.7.1