keystore: 'get_tx_derivations' no longer public
This commit is contained in:
@@ -36,7 +36,7 @@ class Plugin(TrustedCoinPlugin):
|
||||
if not wallet.can_sign_without_server():
|
||||
self.logger.info("twofactor:sign_tx")
|
||||
auth_code = None
|
||||
if wallet.keystores['x3/'].get_tx_derivations(tx):
|
||||
if wallet.keystores['x3/'].can_sign(tx, ignore_watching_only=True):
|
||||
msg = _('Please enter your Google Authenticator code:')
|
||||
auth_code = int(input(msg))
|
||||
else:
|
||||
|
||||
@@ -66,7 +66,7 @@ class HandlerTwoFactor(QObject, Logger):
|
||||
return
|
||||
if wallet.can_sign_without_server():
|
||||
return
|
||||
if not wallet.keystores['x3/'].get_tx_derivations(tx):
|
||||
if not wallet.keystores['x3/'].can_sign(tx, ignore_watching_only=True):
|
||||
self.logger.info("twofactor: xpub3 not needed")
|
||||
return
|
||||
window = self.window.top_level_window()
|
||||
|
||||
@@ -458,7 +458,7 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
return
|
||||
if wallet.can_sign_without_server():
|
||||
return
|
||||
if not wallet.keystores['x3/'].get_tx_derivations(tx):
|
||||
if not wallet.keystores['x3/'].can_sign(tx, ignore_watching_only=True):
|
||||
self.logger.info("twofactor: xpub3 not needed")
|
||||
return
|
||||
def wrapper(tx):
|
||||
|
||||
Reference in New Issue
Block a user