1
0

qml: refactor QEWallet.sign() to sign() and sign_and_broadcast(), add user feedback when signing fails.

This commit is contained in:
Sander van Grieken
2024-10-23 12:02:01 +02:00
parent 0f26f38d18
commit c6cd47ebba
5 changed files with 51 additions and 26 deletions

View File

@@ -458,9 +458,11 @@ class TrustedCoinPlugin(BasePlugin):
if not wallet.keystores['x3'].can_sign(tx, ignore_watching_only=True):
self.logger.info("twofactor: xpub3 not needed")
return
def wrapper(tx):
assert tx
self.prompt_user_for_otp(wallet, tx, on_success, on_failure)
return wrapper
def prompt_user_for_otp(self, wallet, tx, on_success, on_failure) -> None: