From: Forrest Voight Date: Wed, 17 Jul 2013 21:39:23 +0000 (-0400) Subject: refuse to connect to old nodes for bitcoin network X-Git-Tag: 13.2~3 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=f5239b250ac0828482c25872f6ed6e01a7527916 refuse to connect to old nodes for bitcoin network --- diff --git a/p2pool/p2p.py b/p2pool/p2p.py index d116e40..ea51b4a 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -116,7 +116,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 < 8: + if version < (13 if self.node.net.NAME == 'bitcoin' else 8): raise PeerMisbehavingError('peer too old') self.other_version = version