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:
niftynei
2022-07-19 17:04:37 +09:30
committed by Rusty Russell
parent 1dd52ba003
commit 83c6cf25d2
2 changed files with 6 additions and 0 deletions

View File

@@ -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) {