fix coinbase fee
authoralexhz <balthazar@yandex.ru>
Thu, 7 Mar 2013 18:30:00 +0000 (18:30 +0000)
committeralexhz <balthazar@yandex.ru>
Thu, 7 Mar 2013 18:30:00 +0000 (18:30 +0000)
p2pool/data.py

index 0456a28..9203af6 100644 (file)
@@ -177,7 +177,7 @@ class Share(object):
         )
 
         # calculate "raw" subsidy
-        raw_subsidy = share_data['subsidy'] - 3 * minout - get_coinbase_fee(len(weights))
+        raw_subsidy = share_data['subsidy'] - 3 * minout - get_coinbase_fee(len(weights) + 1)
 
         # calculate "raw" amounts
         raw_amounts = dict((script, raw_subsidy*weight//total_weight) for script, weight in weights.iteritems())