From 5694849df585381e551a8faba0c429f0c661cc66 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Sat, 31 Mar 2012 20:29:01 -0400 Subject: [PATCH] ignore connections from old peers --- p2pool/p2p.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/p2pool/p2p.py b/p2pool/p2p.py index d6b27d5..57f0110 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -108,7 +108,7 @@ class Protocol(p2protocol.Protocol): def handle_version(self, version, services, addr_to, addr_from, nonce, sub_version, mode, best_share_hash): if self.other_version is not None: raise PeerMisbehavingError('more than one version message') - if version < 2: + if version < 4: raise PeerMisbehavingError('peer too old') self.other_version = version -- 1.7.1