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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user