git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7c344b1
)
fix coinbase fee
author
alexhz
<balthazar@yandex.ru>
Thu, 7 Mar 2013 18:30:00 +0000 (18:30 +0000)
committer
alexhz
<balthazar@yandex.ru>
Thu, 7 Mar 2013 18:30:00 +0000 (18:30 +0000)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
0456a28
..
9203af6
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-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())