ThomasV 10 years ago
parent
commit
f63bc61ec4
  1. 12
      gui/qt/main_window.py

12
gui/qt/main_window.py

@ -1202,6 +1202,9 @@ class ElectrumWindow(QMainWindow, PrintError):
_("Amount to be sent") + ": " + self.format_amount_and_units(amount), _("Amount to be sent") + ": " + self.format_amount_and_units(amount),
_("Transaction fee") + ": " + self.format_amount_and_units(fee), _("Transaction fee") + ": " + self.format_amount_and_units(fee),
] ]
if tx.get_fee() >= self.config.get('confirm_fee', 100000):
msg.append(_('Warning')+ ': ' + _("The fee for this transaction seems unusually high."))
if self.wallet.use_encryption: if self.wallet.use_encryption:
msg.append(_("Enter your password to proceed")) msg.append(_("Enter your password to proceed"))
password = self.password_dialog('\n'.join(msg)) password = self.password_dialog('\n'.join(msg))
@ -1255,15 +1258,6 @@ class ElectrumWindow(QMainWindow, PrintError):
def broadcast_transaction(self, tx, tx_desc, parent=None): def broadcast_transaction(self, tx, tx_desc, parent=None):
confirm_fee = self.config.get('confirm_fee', 100000)
if tx.get_fee() >= confirm_fee:
msg = '\n'.join([
_("The fee for this transaction seems unusually high."),
_("Are you really sure you want to pay %(fee)s in fees?")%{ 'fee' : self.format_amount_and_units(fee)}
])
if not self.question(msg):
return
def broadcast_thread(): def broadcast_thread():
# non-GUI thread # non-GUI thread
pr = self.payment_request pr = self.payment_request

Loading…
Cancel
Save