always use checksum in bitcoin p2p communications after 1329696000. thanks to gmaxwel...
authorForrest Voight <forrest@forre.st>
Fri, 10 Feb 2012 17:47:23 +0000 (12:47 -0500)
committerForrest Voight <forrest@forre.st>
Fri, 10 Feb 2012 17:47:23 +0000 (12:47 -0500)
p2pool/bitcoin/p2p.py

index 625ab6d..27dc105 100644 (file)
@@ -111,7 +111,7 @@ class Protocol(BaseProtocol):
     
     @property
     def use_checksum(self):
-        return self.version >= 209
+        return self.version >= 209 or time.time() > 1329696000
     
     def connectionMade(self):
         BaseProtocol.connectionMade(self)