Skip to content

Commit 6d63e68

Browse files
ddustinrustyrussell
authored andcommitted
splice: Update messages to spec
Changelog-Changed: Splicing moved from test numbers to spec numbers.
1 parent dcdf7db commit 6d63e68

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

channeld/channeld.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ static u8 *send_commit_part(const tal_t *ctx,
11601160
* send unless negotiated */
11611161
if (feature_negotiated(peer->our_features,
11621162
peer->their_features,
1163-
OPT_EXPERIMENTAL_SPLICE)) {
1163+
OPT_SPLICE)) {
11641164
status_debug("send_commit_part(splice: %d, remote_splice: %d,"
11651165
" index: %"PRIu64")",
11661166
(int)splice_amnt, (int)remote_splice_amnt,

lightningd/hsm_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ struct ext_key *hsm_init(struct lightningd *ld)
177177
}
178178

179179
if (feature_offered(ld->our_features->bits[INIT_FEATURE],
180-
OPT_EXPERIMENTAL_SPLICE)
180+
OPT_SPLICE)
181181
&& !hsm_capable(ld, WIRE_HSMD_SIGN_SPLICE_TX)) {
182182
fatal("--experimental-splicing needs HSM capable of signing splices!");
183183
}

lightningd/options.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ static char *opt_set_splicing(struct lightningd *ld)
12631263
{
12641264
feature_set_or(ld->our_features,
12651265
take(feature_set_for_feature(NULL,
1266-
OPTIONAL_FEATURE(OPT_EXPERIMENTAL_SPLICE))));
1266+
OPTIONAL_FEATURE(OPT_SPLICE))));
12671267
return NULL;
12681268
}
12691269

@@ -2058,7 +2058,7 @@ void add_config_deprecated(struct lightningd *ld,
20582058
json_add_bool(response, name0,
20592059
feature_offered(ld->our_features
20602060
->bits[INIT_FEATURE],
2061-
OPT_EXPERIMENTAL_SPLICE));
2061+
OPT_SPLICE));
20622062
} else if (opt->cb == (void *)opt_set_onion_messages) {
20632063
json_add_bool(response, name0,
20642064
feature_offered(ld->our_features

tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def expected_peer_features(extra=[]):
4545
# option_dual_fund
4646
features += [29]
4747
if EXPERIMENTAL_SPLICING:
48-
features += [163] # option_experimental_splice
48+
features += [63] # option_splice
4949
if TEST_NETWORK != 'liquid-regtest':
5050
# Anchors, except for elements
5151
features += [23]
@@ -61,7 +61,7 @@ def expected_node_features(extra=[]):
6161
# option_dual_fund
6262
features += [29]
6363
if EXPERIMENTAL_SPLICING:
64-
features += [163] # option_experimental_splice
64+
features += [63] # option_splice
6565
if TEST_NETWORK != 'liquid-regtest':
6666
# Anchors, except for elements
6767
features += [23]

wire/peer_wire.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ subtypedata,lease_rates,channel_fee_max_base_msat,tu32,
211211
msgtype,stfu,2
212212
msgdata,stfu,channel_id,channel_id,
213213
msgdata,stfu,initiator,u8,
214-
msgtype,splice,75
214+
msgtype,splice,80
215215
msgdata,splice,channel_id,channel_id,
216216
msgdata,splice,relative_satoshis,s64,
217217
msgdata,splice,funding_feerate_perkw,u32,
218218
msgdata,splice,locktime,u32,
219219
msgdata,splice,funding_pubkey,point,
220-
msgtype,splice_ack,76
220+
msgtype,splice_ack,81
221221
msgdata,splice_ack,channel_id,channel_id,
222222
msgdata,splice_ack,relative_satoshis,s64,
223223
msgdata,splice_ack,funding_pubkey,point,

0 commit comments

Comments
 (0)