Browse Source

fixes after rebase persist_lnwatcher

patch-4
Sander van Grieken 3 years ago
parent
commit
c505de2fe0
  1. 2
      electrum/gui/qml/qeaddressdetails.py
  2. 2
      electrum/gui/qml/qeaddresslistmodel.py

2
electrum/gui/qml/qeaddressdetails.py

@ -125,6 +125,6 @@ class QEAddressDetails(QObject):
self._pubkeys = self._wallet.wallet.get_public_keys(self._address)
self._derivationPath = self._wallet.wallet.get_address_path_str(self._address)
self._derivationPath = self._derivationPath.replace('m', self._wallet.derivationPrefix)
self._numtx = self._wallet.wallet.get_address_history_len(self._address)
self._numtx = self._wallet.wallet.adb.get_address_history_len(self._address)
assert(self._numtx == self.historyModel.rowCount(0))
self.detailsChanged.emit()

2
electrum/gui/qml/qeaddresslistmodel.py

@ -47,7 +47,7 @@ class QEAddressListModel(QAbstractListModel):
def addr_to_model(self, address):
item = {}
item['address'] = address
item['numtx'] = self.wallet.get_address_history_len(address)
item['numtx'] = self.wallet.adb.get_address_history_len(address)
item['label'] = self.wallet.get_label(address)
c, u, x = self.wallet.get_addr_balance(address)
item['balance'] = QEAmount(amount_sat=c + u + x)

Loading…
Cancel
Save