lightningd: use P2TR for anchor spends.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-11-10 13:14:27 +10:30
parent ad1e9f7979
commit 836204b1f2

View file

@ -251,7 +251,7 @@ static struct wally_psbt *anchor_psbt(const tal_t *ctx,
bip32_pubkey(ld, &final_key, channel->final_key_idx); bip32_pubkey(ld, &final_key, channel->final_key_idx);
psbt_append_output(psbt, psbt_append_output(psbt,
scriptpubkey_p2wpkh(tmpctx, &final_key), scriptpubkey_p2tr(tmpctx, &final_key),
change); change);
return psbt; return psbt;
} }