electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8423f8394f6ded3c443a716144248516c256d711
parent 8804ea8b1a92ccf3db9027d5715e37aa8a00d099
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 20 Aug 2016 09:16:03 +0200

dynfees: set default

Diffstat:
Mgui/qt/main_window.py | 4++--
Mlib/wallet.py | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -2285,7 +2285,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): fee_label = HelpLabel(_('Transaction fee per kb') + ':', msg) fee_e = BTCkBEdit(self.get_decimal_point) def on_fee(is_done): - if self.config.get('dynamic_fees'): + if self.config.get('dynamic_fees', True): return v = fee_e.get_amount() or 0 self.config.set_key('fee_per_kb', v, is_done) @@ -2300,7 +2300,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): fee_widgets.append((dynfee_cb, None)) def update_feeperkb(): fee_e.setAmount(self.config.get('fee_per_kb', bitcoin.RECOMMENDED_FEE)) - b = self.config.get('dynamic_fees', False) + b = self.config.get('dynamic_fees', True) fee_e.setEnabled(not b) def on_dynfee(x): self.config.set_key('dynamic_fees', x == Qt.Checked) diff --git a/lib/wallet.py b/lib/wallet.py @@ -748,7 +748,7 @@ class Abstract_Wallet(PrintError): return '' def fee_per_kb(self, config): - b = config.get('dynamic_fees') + b = config.get('dynamic_fees', True) i = config.get('fee_level', 2) if b and self.network and self.network.dynfee(i): return self.network.dynfee(i)