Fixed issue with thousands separator for better readability (#7427)
util.format_satoshis: introduce new option to add thousands separators
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user