Browse Source

qml: Remove key exist check in lnworker.payment_info

We don't use its result, and I've seen one occasion where a payment exists in history, but not in payment_info dict
patch-4
Sander van Grieken 2 years ago
parent
commit
f64d344dcd
  1. 4
      electrum/gui/qml/qelnpaymentdetails.py

4
electrum/gui/qml/qelnpaymentdetails.py

@ -87,10 +87,6 @@ class QELnPaymentDetails(QObject):
self._logger.error('wallet undefined')
return
if self._key not in self._wallet.wallet.lnworker.payment_info:
self._logger.error('payment_hash not found')
return
# TODO this is horribly inefficient. need a payment getter/query method
tx = self._wallet.wallet.lnworker.get_lightning_history()[bfh(self._key)]
self._logger.debug(str(tx))

Loading…
Cancel
Save