From: Forrest Voight Date: Mon, 1 Jul 2013 06:37:59 +0000 (-0400) Subject: increased maximum difficulty multiplier to 30 X-Git-Tag: 13.0^2 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=354ec22a175fe03cd3cd3487426bb1df338d6b5c increased maximum difficulty multiplier to 30 --- diff --git a/p2pool/data.py b/p2pool/data.py index b0edf1f..0ff5f07 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -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