From: Forrest Voight Date: Sun, 1 Apr 2012 00:29:01 +0000 (-0400) Subject: ignore connections from old peers X-Git-Tag: 0.10.4~26 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=5694849df585381e551a8faba0c429f0c661cc66;p=p2pool.git ignore connections from old peers --- 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