1
0

qt tx dialog: small fee edit fix

scenario: enter extremely high feerate (which we cannot satisfy) then click into fee_edit.
At that moment, fee_edit is empty and both feerate_edit and fee_edit are considered frozen.
As fee_edit has priority, we would construct a tx with default fee.
Now, instead, we won't construct this default fee tx ~as if the click to fee_edit did not happen.
This commit is contained in:
SomberNight
2019-11-19 19:29:10 +01:00
parent 8bd27851a4
commit 66ddedb97e
3 changed files with 5 additions and 4 deletions

View File

@@ -693,9 +693,9 @@ class PreviewTxDialog(BaseTxDialog, TxEditor):
.format(num_satoshis_added))
def get_fee_estimator(self):
if self.is_send_fee_frozen():
if self.is_send_fee_frozen() and self.fee_e.get_amount() is not None:
fee_estimator = self.fee_e.get_amount()
elif self.is_send_feerate_frozen():
elif self.is_send_feerate_frozen() and self.feerate_e.get_amount() is not None:
amount = self.feerate_e.get_amount() # sat/byte feerate
amount = 0 if amount is None else amount * 1000 # sat/kilobyte feerate
fee_estimator = partial(