tfix #2060: use tx size for high fee warning - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit bafe3e4ff88bccd2a7c23e498e22c5e552dcaabf DIR parent d09e91e631443759e0c03d3d3f63757265323c63 HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 6 Jan 2017 10:54:04 +0100 fix #2060: use tx size for high fee warning Diffstat: M gui/qt/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -1256,7 +1256,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): if extra_fee: msg.append( _("Additional fees") + ": " + self.format_amount_and_units(extra_fee) ) - if tx.get_fee() >= self.config.get('confirm_fee', 100000): + confirm_rate = self.config.get('confirm_fee', 200000) + if tx.get_fee() > confirm_rate * tx.estimated_size() / 1000: msg.append(_('Warning')+ ': ' + _("The fee for this transaction seems unusually high.")) if self.wallet.has_password():