increased maximum difficulty multiplier to 30
authorForrest Voight <forrest@forre.st>
Mon, 1 Jul 2013 06:37:59 +0000 (02:37 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 3 Jul 2013 18:31:03 +0000 (14:31 -0400)
p2pool/data.py

index b0edf1f..0ff5f07 100644 (file)
@@ -123,7 +123,7 @@ class NewShare(object):
             pre_target2 = math.clip(pre_target, (previous_share.max_target*9//10, previous_share.max_target*11//10))
             pre_target3 = math.clip(pre_target2, (net.MIN_TARGET, net.MAX_TARGET))
         max_bits = bitcoin_data.FloatingInteger.from_target_upper_bound(pre_target3)
-        bits = bitcoin_data.FloatingInteger.from_target_upper_bound(math.clip(desired_target, (pre_target3//10, pre_target3)))
+        bits = bitcoin_data.FloatingInteger.from_target_upper_bound(math.clip(desired_target, (pre_target3//30, pre_target3)))
         
         new_transaction_hashes = []
         new_transaction_size = 0