Add rounding helper function to util.py
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
8f761e87c3
commit
6e8b07f5f3
@@ -8,9 +8,6 @@
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import *
|
||||
|
||||
def satoshi_round(amount):
|
||||
return Decimal(amount).quantize(Decimal('0.00000001'), rounding=ROUND_DOWN)
|
||||
|
||||
MAX_ANCESTORS = 25
|
||||
MAX_DESCENDANTS = 25
|
||||
|
||||
|
||||
Reference in New Issue
Block a user