1
0

config: distinguish knowing mempool is empty vs not having mempool_fees

config.mempool_fees is now [] if server claims mempool is ~empty,
and None if no valid histogram has been received from server.
(previously it used to be [] in both cases)
This commit is contained in:
SomberNight
2020-10-27 18:55:39 +01:00
parent 2232955a23
commit ea22d0073e
5 changed files with 25 additions and 14 deletions

View File

@@ -156,7 +156,7 @@ class TxDialog(Factory.Popup):
if tx_mined_status.timestamp:
self.date_label = _('Date')
self.date_str = datetime.fromtimestamp(tx_mined_status.timestamp).isoformat(' ')[:-3]
elif exp_n:
elif exp_n is not None:
self.date_label = _('Mempool depth')
self.date_str = _('{} from tip').format('%.2f MB'%(exp_n/1000000))
else: