Browse Source

qml: QEWallet.sign: prompt for confirmation even if no PIN is set

it would probably be better to also tell the user if the tx is going to be broadcast
master
SomberNight 1 year ago
parent
commit
c90c87afb9
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qml/qewallet.py

2
electrum/gui/qml/qewallet.py

@ -518,7 +518,7 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
self.isLightningChanged.emit()
self.dataChanged.emit()
@auth_protect()
@auth_protect(message=_('Sign on-chain transaction?')) # FIXME auth msg cannot be explicit due to "broadcast" param
def sign(self, tx, *, broadcast: bool = False, on_success: Callable[[Transaction], None] = None, on_failure: Callable[[], None] = None):
sign_hook = run_hook('tc_sign_wrapper', self.wallet, tx, partial(self.on_sign_complete, broadcast, on_success), partial(self.on_sign_failed, on_failure))
if sign_hook:

Loading…
Cancel
Save