1
0

minor qt send tab fixes. notably 'send max' was broken

follow-up aaed594772
This commit is contained in:
SomberNight
2019-09-16 02:54:32 +02:00
parent 5e04f084b7
commit 0b87ce426f
3 changed files with 12 additions and 7 deletions

View File

@@ -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