1
0

confirmaion dialog if transaction fee is high

This commit is contained in:
thomasv
2013-12-16 15:16:10 +01:00
parent 8090098d90
commit 89d4229207
2 changed files with 10 additions and 0 deletions

View File

@@ -903,6 +903,11 @@ class ElectrumWindow(QMainWindow):
if amount >= confirm_amount:
if not self.question(_("send %(amount)s to %(address)s?")%{ 'amount' : self.format_amount(amount) + ' '+ self.base_unit(), 'address' : to_address}):
return
confirm_fee = self.config.get('confirm_fee', 100000)
if fee >= confirm_fee:
if not self.question(_("The fee for this transaction seems unusually high.\nAre you really sure you want to pay %(fee)s in fees?")%{ 'fee' : self.format_amount(fee) + ' '+ self.base_unit()}):
return
self.send_tx(to_address, amount, fee, label)