X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=blobdiff_plain;f=p2pool%2Fdata.py;h=e5a69ce2e36f9a79df8daaa74790d16e99cecacc;hp=61f9125362141af36b92ac5943a04c390886e9b2;hb=702aba6996bc880a9af26aeeef19bea29813c141;hpb=b79393136d0e1c6a90322781e8358af887b8bb02 diff --git a/p2pool/data.py b/p2pool/data.py index 61f9125..e5a69ce 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -152,10 +152,10 @@ class Share(object): removed_fees = [fee for tx_hash, fee in desired_other_transaction_hashes_and_fees if tx_hash not in included_transactions] definite_fees = sum(0 if fee is None else fee for tx_hash, fee in desired_other_transaction_hashes_and_fees if tx_hash in included_transactions) if None not in removed_fees: - share_data = dict(share_data, subsidy=share_data['subsidy'] - sum(removed_fees)) + share_data = dict(share_data, subsidy=share_data['subsidy']) else: assert base_subsidy is not None - share_data = dict(share_data, subsidy=base_subsidy + definite_fees) + share_data = dict(share_data, subsidy=base_subsidy) weights, total_weight, donation_weight = tracker.get_cumulative_weights(previous_share.share_data['previous_share_hash'] if previous_share is not None else None, max(0, min(height, net.REAL_CHAIN_LENGTH) - 1),