From 76b297b65cd33bf972b00820b635b993f28e8133 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Wed, 26 Jun 2013 16:01:24 -0400 Subject: [PATCH] changed new share to delay payouts 1 share --- p2pool/data.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.1