|
@ -25,6 +25,7 @@ from electrum.util import send_exception_to_crash_reporter |
|
|
from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED |
|
|
from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.wallet import InternalAddressCorruption |
|
|
from electrum.wallet import InternalAddressCorruption |
|
|
|
|
|
from electrum import simple_config |
|
|
|
|
|
|
|
|
from .context_menu import ContextMenu |
|
|
from .context_menu import ContextMenu |
|
|
|
|
|
|
|
@ -293,7 +294,8 @@ class SendScreen(CScreen): |
|
|
x_fee_address, x_fee_amount = x_fee |
|
|
x_fee_address, x_fee_amount = x_fee |
|
|
msg.append(_("Additional fees") + ": " + self.app.format_amount_and_units(x_fee_amount)) |
|
|
msg.append(_("Additional fees") + ": " + self.app.format_amount_and_units(x_fee_amount)) |
|
|
|
|
|
|
|
|
if fee >= config.get('confirm_fee', 100000): |
|
|
feerate_warning = simple_config.FEERATE_WARNING_HIGH_FEE |
|
|
|
|
|
if fee > feerate_warning * tx.estimated_size() / 1000: |
|
|
msg.append(_('Warning') + ': ' + _("The fee for this transaction seems unusually high.")) |
|
|
msg.append(_('Warning') + ': ' + _("The fee for this transaction seems unusually high.")) |
|
|
msg.append(_("Enter your PIN code to proceed")) |
|
|
msg.append(_("Enter your PIN code to proceed")) |
|
|
self.app.protected('\n'.join(msg), self.send_tx, (tx, message)) |
|
|
self.app.protected('\n'.join(msg), self.send_tx, (tx, message)) |
|
|