mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
tell user about 2fa fees when sending tx
This commit is contained in:
parent
396fa949b0
commit
27012e7394
1 changed files with 6 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue