From 3ad453fafbfbeafedfa1181800099148cabf530f Mon Sep 17 00:00:00 2001 From: ecdsa Date: Sun, 24 Mar 2013 09:24:45 +0100 Subject: [PATCH] rename fee to fee_per_kb --- gui/gui_classic.py | 2 +- gui/gui_text.py | 4 ++-- lib/wallet.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/gui_classic.py b/gui/gui_classic.py index b44d0c80f..c536450c5 100644 --- a/gui/gui_classic.py +++ b/gui/gui_classic.py @@ -1936,7 +1936,7 @@ class ElectrumWindow(QMainWindow): + _('Recommended value') + ': 0.0001' grid_wallet.addWidget(HelpButton(msg), 0, 3) fee_e.textChanged.connect(lambda: numbify(fee_e,False)) - if not self.config.is_modifiable('fee'): + if not self.config.is_modifiable('fee_per_kb'): for w in [fee_e, fee_label]: w.setEnabled(False) usechange_label = QLabel(_('Use change addresses')) diff --git a/gui/gui_text.py b/gui/gui_text.py index 77d70bed3..58c67329c 100644 --- a/gui/gui_text.py +++ b/gui/gui_text.py @@ -318,14 +318,14 @@ class ElectrumGui: def settings_dialog(self): out = self.run_dialog('Settings', [ {'label':'Default GUI', 'type':'list', 'choices':['classic','lite','gtk','text'], 'value':self.config.get('gui')}, - {'label':'Default fee', 'type':'satoshis', 'value': format_satoshis(self.config.get('fee')).strip() } + {'label':'Default fee', 'type':'satoshis', 'value': format_satoshis(self.config.get('fee_per_kb')).strip() } ], buttons = 1) if out: if out.get('Default GUI'): self.config.set_key('gui', out['Default GUI'], True) if out.get('Default fee'): fee = int ( Decimal( out['Default fee']) *10000000 ) - self.config.set_key('fee', fee, True) + self.config.set_key('fee_per_kb', fee, True) def password_dialog(self): diff --git a/lib/wallet.py b/lib/wallet.py index c9eea98b2..da44b7d82 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -74,7 +74,7 @@ class Wallet: self.seed_version = config.get('seed_version', SEED_VERSION) self.gap_limit = config.get('gap_limit', 5) self.use_change = config.get('use_change',True) - self.fee = int(config.get('fee',10000)) + self.fee = int(config.get('fee_per_kb',10000)) self.num_zeros = int(config.get('num_zeros',0)) self.use_encryption = config.get('use_encryption', False) self.seed = config.get('seed', '') # encrypted @@ -831,7 +831,7 @@ class Wallet: s = { 'use_encryption': self.use_encryption, 'use_change': self.use_change, - 'fee': self.fee, + 'fee_per_kb': self.fee, 'accounts': self.accounts, 'addr_history': self.history, 'labels': self.labels,