1
0

qml: fix derivation prefix not available for watch-ony wallets

This commit is contained in:
Sander van Grieken
2022-08-23 18:36:55 +02:00
parent f05ff0c9b8
commit 65b3c1abb3

View File

@@ -122,7 +122,8 @@ class QEAddressDetails(QObject):
self._balance = QEAmount(amount_sat=c + u + x)
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)
if self._wallet.derivationPrefix:
self._derivationPath = self._derivationPath.replace('m', self._wallet.derivationPrefix)
self._numtx = self._wallet.wallet.adb.get_address_history_len(self._address)
assert(self._numtx == self.historyModel.rowCount(0))
self.detailsChanged.emit()