minor qt send tab fixes. notably 'send max' was broken
follow-up aaed594772
This commit is contained in:
@@ -585,12 +585,14 @@ def format_satoshis_plain(x, decimal_point = 8):
|
||||
return "{:.8f}".format(Decimal(x) / scale_factor).rstrip('0').rstrip('.')
|
||||
|
||||
|
||||
DECIMAL_POINT = localeconv()['decimal_point']
|
||||
DECIMAL_POINT = localeconv()['decimal_point'] # type: str
|
||||
|
||||
|
||||
def format_satoshis(x, num_zeros=0, decimal_point=8, precision=None, is_diff=False, whitespaces=False):
|
||||
def format_satoshis(x, num_zeros=0, decimal_point=8, precision=None, is_diff=False, whitespaces=False) -> str:
|
||||
if x is None:
|
||||
return 'unknown'
|
||||
if x == '!':
|
||||
return 'max'
|
||||
if precision is None:
|
||||
precision = decimal_point
|
||||
# format string
|
||||
|
||||
Reference in New Issue
Block a user