1
0

Fixed issue with thousands separator for better readability (#7427)

util.format_satoshis: introduce new option to add thousands separators
This commit is contained in:
djboi
2021-07-28 18:56:30 +05:30
committed by GitHub
parent 07219cc4c6
commit 6a431aab8c
3 changed files with 19 additions and 1 deletions

View File

@@ -659,7 +659,7 @@ class SimpleConfig(Logger):
except:
pass
def format_amount(self, x, is_diff=False, whitespaces=False):
def format_amount(self, x, is_diff=False, whitespaces=False, add_thousands_sep=True):
return format_satoshis(
x,
num_zeros=self.num_zeros,
@@ -667,6 +667,7 @@ class SimpleConfig(Logger):
is_diff=is_diff,
whitespaces=whitespaces,
precision=self.amt_precision_post_satoshi,
add_thousands_sep=add_thousands_sep,
)
def format_amount_and_units(self, amount):