fix get_fee_text for static fees
mismatching units probably only affects kivy gui; when using static fees
This commit is contained in:
@@ -403,11 +403,14 @@ class SimpleConfig(PrintError):
|
|||||||
"""Returns (text, tooltip) where
|
"""Returns (text, tooltip) where
|
||||||
text is what we target: static fee / num blocks to confirm in / mempool depth
|
text is what we target: static fee / num blocks to confirm in / mempool depth
|
||||||
tooltip is the corresponding estimate (e.g. num blocks for a static fee)
|
tooltip is the corresponding estimate (e.g. num blocks for a static fee)
|
||||||
|
|
||||||
|
fee_rate is in sat/kbyte
|
||||||
"""
|
"""
|
||||||
if fee_rate is None:
|
if fee_rate is None:
|
||||||
rate_str = 'unknown'
|
rate_str = 'unknown'
|
||||||
else:
|
else:
|
||||||
rate_str = format_fee_satoshis(fee_rate/1000) + ' sat/byte'
|
fee_rate = fee_rate/1000
|
||||||
|
rate_str = format_fee_satoshis(fee_rate) + ' sat/byte'
|
||||||
|
|
||||||
if dyn:
|
if dyn:
|
||||||
if mempool:
|
if mempool:
|
||||||
|
|||||||
Reference in New Issue
Block a user