1
0

add wallet type imported addresses/private keys to wizard

This commit is contained in:
Sander van Grieken
2022-10-04 12:00:50 +02:00
parent 255f508574
commit 6ea3a16cc8
8 changed files with 160 additions and 13 deletions

View File

@@ -319,6 +319,8 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
@pyqtProperty(str, notify=dataChanged)
def txinType(self):
if self.wallet.wallet_type == 'imported':
return self.wallet.txin_type
return self.wallet.get_txin_type(self.wallet.dummy_address())
@pyqtProperty(bool, notify=dataChanged)
@@ -342,6 +344,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
keystores = self.wallet.get_keystores()
if len(keystores) > 1:
self._logger.debug('multiple keystores not supported yet')
if len(keystores) == 0:
self._logger.debug('no keystore')
return ''
return keystores[0].get_derivation_prefix()
@pyqtProperty(str, notify=dataChanged)