commit 27012e7394ce5230269a2c59e8a4df12253e75a7
parent 396fa949b0a38f08feeffaff6d6d2de76c1ac9e1
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 8 Jun 2018 13:41:44 +0200
tell user about 2fa fees when sending tx
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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"))