fixed stale fraction parsing
authorForrest Voight <forrest@forre.st>
Wed, 9 Nov 2011 22:43:18 +0000 (17:43 -0500)
committerForrest Voight <forrest@forre.st>
Wed, 9 Nov 2011 22:43:18 +0000 (17:43 -0500)
p2pool/main.py

index 0c80b6e..e20a00e 100644 (file)
@@ -625,7 +625,7 @@ def main(args):
         
         
         def read_stale_frac(share):
-            if len(share.nonce) != 20:
+            if len(share.nonce) < 4:
                 return None
             a, b = struct.unpack("<HH", share.nonce[-4:])
             if a != b: