1
0
This commit is contained in:
ThomasV
2020-05-11 08:12:09 +02:00
parent e2c2c89988
commit 6aeab66463

View File

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