1
0

Fix calls to update_fee

Fees should be recalculated when send_from changes.
Fees should be recalculated when editing fee preference, but
only save to storage when leaving the fee per kb widget.
No need to emit a textEdited signal; the widget does that already
(with the effect that we used to call update_fee() twice).
This commit is contained in:
Neil Booth
2015-05-28 15:52:31 +09:00
parent a2e50207ec
commit 05cb9975cb
3 changed files with 11 additions and 10 deletions

View File

@@ -633,10 +633,9 @@ class Abstract_Wallet(object):
xx += x
return cc, uu, xx
def set_fee(self, fee):
if self.fee_per_kb != fee:
self.fee_per_kb = fee
self.storage.put('fee_per_kb', self.fee_per_kb, True)
def set_fee(self, fee, save = True):
self.fee_per_kb = fee
self.storage.put('fee_per_kb', self.fee_per_kb, save)
def get_address_history(self, address):
with self.lock: