follow-up afa2ed1fe285886fdd087aa8b1e303e2634d9098
This commit is contained in:
@@ -261,7 +261,7 @@ class TxDialog(Factory.Popup):
|
|||||||
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 = self.wallet.get_tx_fee(parent_txid)
|
parent_fee = self.wallet.adb.get_tx_fee(parent_txid)
|
||||||
if parent_fee is None:
|
if parent_fee is None:
|
||||||
self.app.show_error(_("Can't CPFP: unknown fee for parent transaction."))
|
self.app.show_error(_("Can't CPFP: unknown fee for parent transaction."))
|
||||||
return
|
return
|
||||||
@@ -356,7 +356,7 @@ class TxDialog(Factory.Popup):
|
|||||||
|
|
||||||
def on_prompt(b):
|
def on_prompt(b):
|
||||||
if b:
|
if b:
|
||||||
self.wallet.remove_transaction(txid)
|
self.wallet.adb.remove_transaction(txid)
|
||||||
self.wallet.save_db()
|
self.wallet.save_db()
|
||||||
self.app._trigger_update_wallet() # FIXME private...
|
self.app._trigger_update_wallet() # FIXME private...
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
|
|||||||
@@ -991,16 +991,6 @@ class Abstract_Wallet(ABC):
|
|||||||
self.set_label(tx_hash, "; ".join(labels))
|
self.set_label(tx_hash, "; ".join(labels))
|
||||||
return bool(labels)
|
return bool(labels)
|
||||||
|
|
||||||
# fixme: this needs a callback
|
|
||||||
#def add_transaction(self, tx, *, allow_unrelated=False):
|
|
||||||
# is_known = bool(self.db.get_transaction(tx.txid()))
|
|
||||||
# tx_was_added = self.adb.add_transaction(tx, allow_unrelated=allow_unrelated)
|
|
||||||
# if tx_was_added and not is_known:
|
|
||||||
# self._maybe_set_tx_label_based_on_invoices(tx)
|
|
||||||
# if self.lnworker:
|
|
||||||
# self.lnworker.maybe_add_backup_from_tx(tx)
|
|
||||||
# return tx_was_added
|
|
||||||
|
|
||||||
@profiler
|
@profiler
|
||||||
def get_full_history(self, fx=None, *, onchain_domain=None, include_lightning=True):
|
def get_full_history(self, fx=None, *, onchain_domain=None, include_lightning=True):
|
||||||
transactions_tmp = OrderedDictWithIndex()
|
transactions_tmp = OrderedDictWithIndex()
|
||||||
|
|||||||
Reference in New Issue
Block a user