added one hour leeway in transition times
authorForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 05:41:27 +0000 (00:41 -0500)
committerForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 05:41:27 +0000 (00:41 -0500)
p2pool/data.py

index cbbe338..810cee6 100644 (file)
@@ -215,7 +215,7 @@ class Share(object):
         return dict(header=self.header, share_info=self.share_info, other_txs=self.other_txs)
     
     def check(self, tracker, now, net):
-        if self.header['timestamp'] >= TRANSITION_TIME:
+        if self.header['timestamp'] >= TRANSITION_TIME + 3600:
             raise AssertionError('transitioning...')
         import time
         if self.previous_share_hash is not None:
@@ -326,7 +326,7 @@ class NewShare(Share):
         self.peer = None
     
     def check(self, tracker, now, net):
-        if self.header['timestamp'] < TRANSITION_TIME:
+        if self.header['timestamp'] <= TRANSITION_TIME - 3600:
             raise AssertionError('transitioning...')
         
         share_info, gentx = new_generate_transaction(tracker, self.share_info['new_share_data'], self.header['target'], self.share_info['timestamp'], net)