Skip to content

Commit b2dcf3b

Browse files
committed
splice: Add call to hsmd_{check,lock}_outpoint on mutual splice_locked
1 parent 9064b14 commit b2dcf3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

channeld/channeld.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ static void check_mutual_splice_locked(struct peer *peer)
789789
status_debug("mutual splice_locked, channel updated to: %s",
790790
type_to_string(tmpctx, struct channel, peer->channel));
791791

792+
/* ensure the signer is locking at the same time */
793+
lock_signer_outpoint(&inflight->outpoint);
794+
792795
msg = towire_channeld_got_splice_locked(NULL, inflight->amnt,
793796
inflight->splice_amnt,
794797
&inflight->outpoint.txid);

lightningd/channel_control.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,8 @@ bool peer_start_channeld(struct channel *channel,
12831283
| HSM_PERM_SIGN_REMOTE_TX
12841284
| HSM_PERM_SIGN_ONCHAIN_TX
12851285
| HSM_PERM_SIGN_CLOSING_TX
1286-
| HSM_PERM_SIGN_SPLICE_TX);
1286+
| HSM_PERM_SIGN_SPLICE_TX
1287+
| HSM_PERM_LOCK_OUTPOINT);
12871288

12881289
channel_set_owner(channel,
12891290
new_channel_subd(channel, ld,

0 commit comments

Comments
 (0)