commit 6aeab664637681afcaba9f4384091386d57a5a50
parent e2c2c8998870ac48230890c3d9adc56838d67eb5
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 11 May 2020 08:12:09 +0200
fix #6157
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -614,7 +614,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
def get_onchain_history(self, *, domain=None):
monotonic_timestamp = 0
for hist_item in self.get_history(domain=domain):
- monotonic_timestamp = max(monotonic_timestamp, (hist_item.tx_mined_status.timestamp or float('inf')))
+ monotonic_timestamp = max(monotonic_timestamp, (hist_item.tx_mined_status.timestamp or 999_999_999_999))
yield {
'txid': hist_item.txid,
'fee_sat': hist_item.fee,