anchors: dont include utxos which are csv locked

When building a tx to spend *now* we shouldn't include CSV locked utxos
as we want them to be immediately spendable.
This commit is contained in:
niftynei
2024-08-19 17:24:24 -05:00
committed by ShahanaFarooqui
parent 0a6870f13d
commit 5ae7212e37

View File

@@ -469,6 +469,10 @@ struct utxo **wallet_utxo_boost(const tal_t *ctx,
if (utxo_is_reserved(utxo, blockheight))
continue;
/* Don't add csv-locked ones */
if (utxo_is_csv_locked(utxo, blockheight))
continue;
/* UTXOs must be sane amounts */
if (!amount_sat_add(&new_fee_amount,
fee_amount, utxo->amount))