Commit 0c22662c authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Add mandatory pool donations into fee calculation

parent 765f607a
......@@ -170,6 +170,9 @@ def fetch_ncp(p):
result['blocks'].append({ 'height': blocks[i + 1], 'hash': blkdata[0], 'effort': float(blkdata[3]) / float(blkdata[2]) })
result['fee'] = data['config']['fee']
if 'donation' in data['config'] and isinstance(data['config']['donation'], dict):
for d in data['config']['donation'].values():
result['fee'] += float(d)
result['payments'] = data['pool']['totalPayments']
base = float(data['config']['coinUnits' if 'coinUnits' in data['config'] else 'denominationUnit'])
if p['name'] == '' and base == 100:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment