From 27012e7394ce5230269a2c59e8a4df12253e75a7 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 8 Jun 2018 13:41:44 +0200 Subject: [PATCH] tell user about 2fa fees when sending tx --- gui/kivy/uix/screens.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index da1e25021..3d864a727 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -21,6 +21,7 @@ from electrum.util import profiler, parse_URI, format_time, InvalidPassword, Not from electrum import bitcoin from electrum.util import timestamp_to_datetime from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED +from electrum.plugins import run_hook from .context_menu import ContextMenu @@ -283,6 +284,11 @@ class SendScreen(CScreen): _("Amount to be sent") + ": " + self.app.format_amount_and_units(amount), _("Mining fee") + ": " + self.app.format_amount_and_units(fee), ] + x_fee = run_hook('get_tx_extra_fee', self.app.wallet, tx) + if x_fee: + x_fee_address, x_fee_amount = x_fee + msg.append(_("Additional fees") + ": " + self.app.format_amount_and_units(x_fee_amount)) + if fee >= config.get('confirm_fee', 100000): msg.append(_('Warning')+ ': ' + _("The fee for this transaction seems unusually high.")) msg.append(_("Enter your PIN code to proceed"))