From: Forrest Voight Date: Wed, 26 Jun 2013 20:01:24 +0000 (-0400) Subject: changed new share to delay payouts 1 share X-Git-Tag: 13.0^2~7 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=76b297b6;hp=ddc6867abf56760fa85f0826aa36cb10ac7c8360 changed new share to delay payouts 1 share --- diff --git a/p2pool/data.py b/p2pool/data.py index 27c72e3..83c1cdc 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -157,8 +157,8 @@ class NewShare(object): assert base_subsidy is not None share_data = dict(share_data, subsidy=base_subsidy + definite_fees) - weights, total_weight, donation_weight = tracker.get_cumulative_weights(share_data['previous_share_hash'], - min(height, net.REAL_CHAIN_LENGTH), + weights, total_weight, donation_weight = tracker.get_cumulative_weights(previous_share.share_data['previous_share_hash'] if previous_share is not None else None, + min(height, net.REAL_CHAIN_LENGTH-1), 65535*net.SPREAD*bitcoin_data.target_to_average_attempts(block_target), ) assert total_weight == sum(weights.itervalues()) + donation_weight, (total_weight, sum(weights.itervalues()) + donation_weight)