Skip to content

Commit ffca9cd

Browse files
committed
splice, hsmd: Fix WIRE_HSMD_SIGN_SPLICE_TX, use HSM_CAP_MASTER
Changelog-None
1 parent f0f3942 commit ffca9cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hsmd/libhsmd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ bool hsmd_check_client_capabilities(struct hsmd_client *client,
106106
case WIRE_HSMD_SIGN_MUTUAL_CLOSE_TX:
107107
return (client->capabilities & HSM_CAP_SIGN_CLOSING_TX) != 0;
108108

109-
case WIRE_HSMD_SIGN_SPLICE_TX:
110-
return (client->capabilities & WIRE_HSMD_SIGN_SPLICE_TX) != 0;
111-
112109
case WIRE_HSMD_SIGN_OPTION_WILL_FUND_OFFER:
113110
return (client->capabilities & HSM_CAP_SIGN_WILL_FUND_OFFER) != 0;
114111

@@ -133,6 +130,7 @@ bool hsmd_check_client_capabilities(struct hsmd_client *client,
133130
case WIRE_HSMD_SIGN_ANY_LOCAL_HTLC_TX:
134131
case WIRE_HSMD_SIGN_ANCHORSPEND:
135132
case WIRE_HSMD_SIGN_HTLC_TX_MINGLE:
133+
case WIRE_HSMD_SIGN_SPLICE_TX:
136134
return (client->capabilities & HSM_CAP_MASTER) != 0;
137135

138136
/*~ These are messages sent by the HSM so we should never receive them. */

0 commit comments

Comments
 (0)