Browse Source

rename fee to fee_per_kb

283
ecdsa 12 years ago
parent
commit
3ad453fafb
  1. 2
      gui/gui_classic.py
  2. 4
      gui/gui_text.py
  3. 4
      lib/wallet.py

2
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'))

4
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):

4
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,

Loading…
Cancel
Save