mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
bkpr: 'to_miner' spends are considered terminal
This is a rare case where we RBF the output of a penalty until it no longer has an output value we can reclaim. We ignore the txid for these events when closing a channel.
This commit is contained in:
@@ -386,6 +386,8 @@ bool find_txo_chain(const tal_t *ctx,
|
||||
* might overlap txids */
|
||||
if (pr->spend
|
||||
&& pr->spend->spending_txid
|
||||
/* 'to_miner' outputs are skipped */
|
||||
&& !streq(pr->spend->tag, "to_miner")
|
||||
&& !txid_in_list(txids, pr->spend->spending_txid)
|
||||
/* We dont trace utxos for non related accts */
|
||||
&& pr->spend->acct_db_id == acct->db_id) {
|
||||
|
||||
Reference in New Issue
Block a user