1
0

trustedcoin: sign first, then prompt for OTP

This commit is contained in:
SomberNight
2018-05-08 20:04:36 +02:00
parent 7c6364c2c7
commit ceae43afe5
5 changed files with 42 additions and 18 deletions

View File

@@ -27,10 +27,10 @@ from electrum.i18n import _
from electrum.plugins import hook
from .trustedcoin import TrustedCoinPlugin
class Plugin(TrustedCoinPlugin):
@hook
def sign_tx(self, wallet, tx):
def prompt_user_for_otp(self, wallet, tx):
if not isinstance(wallet, self.wallet_class):
return
if not wallet.can_sign_without_server():