script: add csv_lock to scripts

This commit is contained in:
niftynei
2021-06-15 15:08:44 -05:00
committed by neil saitug
parent 7a6f84ae63
commit e992b54410
6 changed files with 28 additions and 12 deletions

View File

@@ -276,7 +276,7 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx,
*/
if (option_anchor_outputs) {
scriptpubkey = scriptpubkey_p2wsh(tmpctx,
anchor_to_remote_redeem(tmpctx, &keyset->other_payment_key));
anchor_to_remote_redeem(tmpctx, &keyset->other_payment_key, 1));
} else {
scriptpubkey = scriptpubkey_p2wpkh(tmpctx,
&keyset->other_payment_key);