Browse Source

get_tx_fee: further follow-up 7b828359c6

master
SomberNight 6 years ago
parent
commit
b9af8bf60a
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/main_window.py

6
electrum/gui/qt/main_window.py

@ -3005,7 +3005,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
total_size = parent_tx.estimated_size() + new_tx.estimated_size() total_size = parent_tx.estimated_size() + new_tx.estimated_size()
parent_txid = parent_tx.txid() parent_txid = parent_tx.txid()
assert parent_txid assert parent_txid
parent_fee, _calc_by_us = self.wallet.get_tx_fee(parent_txid) parent_fee = self.wallet.get_tx_fee(parent_txid)
if parent_fee is None: if parent_fee is None:
self.show_error(_("Can't CPFP: unknown fee for parent transaction.")) self.show_error(_("Can't CPFP: unknown fee for parent transaction."))
return return
@ -3084,8 +3084,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
def bump_fee_dialog(self, tx: Transaction): def bump_fee_dialog(self, tx: Transaction):
txid = tx.txid() txid = tx.txid()
assert txid assert txid
fee, is_calc_by_us = self.wallet.get_tx_fee(txid) fee = self.wallet.get_tx_fee(txid)
if fee is None or not is_calc_by_us: if fee is None:
self.show_error(_("Can't bump fee: unknown fee for original transaction.")) self.show_error(_("Can't bump fee: unknown fee for original transaction."))
return return
tx_label = self.wallet.get_label(txid) tx_label = self.wallet.get_label(txid)

Loading…
Cancel
Save