fix for commit f5239b2: refuse to connect to old nodes for bitcoin network
authorForrest Voight <forrest@forre.st>
Fri, 19 Jul 2013 01:32:45 +0000 (21:32 -0400)
committerForrest Voight <forrest@forre.st>
Fri, 19 Jul 2013 01:32:45 +0000 (21:32 -0400)
p2pool/p2p.py

index ea51b4a..f86ec69 100644 (file)
@@ -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 < (13 if self.node.net.NAME == 'bitcoin' else 8):
+        if version < (1300 if self.node.net.NAME == 'bitcoin' else 8):
             raise PeerMisbehavingError('peer too old')
         
         self.other_version = version