Skip to content

Commit 6ff22bc

Browse files
committed
events: rename 'localfeatures' to 'features'
as per 206084c
1 parent d73824a commit 6ff22bc

11 files changed

+64
-64
lines changed

tests/events/bolt1-01-init.events

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ EXPECT_INIT=expect-send: type=init
66

77
1. connect: privkey=0000000000000000000000000000000000000000000000000000000000000003
88
2. $EXPECT_INIT
9-
3. recv: type=init globalfeatures= localfeatures=
9+
3. recv: type=init globalfeatures= features=
1010

1111
1. nothing
1212
1. disconnect:
@@ -18,61 +18,61 @@ EXPECT_INIT=expect-send: type=init
1818
# Minimal possible init message.
1919
# Spec: MUST send `init` as the first Lightning message for any connection.
2020
1. $EXPECT_INIT
21-
2. recv: type=init globalfeatures= localfeatures=
21+
2. recv: type=init globalfeatures= features=
2222

2323
# SHOULD NOT set features greater than 13 in `globalfeatures`.
2424
1. $EXPECT_INIT globalfeatures=000000/030000
2525
# init msg with unknown odd global bit (19): no error
26-
2. recv: type=init globalfeatures=020000 localfeatures=
26+
2. recv: type=init globalfeatures=020000 features=
2727

2828
# Sanity check that bits 34 and 35 are not used!
29-
1. $EXPECT_INIT localfeatures=0000000000/0300000000
29+
1. $EXPECT_INIT features=0000000000/0300000000
3030
# init msg with unknown odd local bit (19): no error
31-
2. recv: type=init globalfeatures= localfeatures=020000
31+
2. recv: type=init globalfeatures= features=020000
3232

3333
# init msg with unknown even global bit (34): you will error
3434
1. $EXPECT_INIT
35-
2. recv: type=init globalfeatures=0100000000 localfeatures=
35+
2. recv: type=init globalfeatures=0100000000 features=
3636
3. expect-error:
3737

3838
# init msg with unknown even local bit (34): you will error
3939
1. $EXPECT_INIT
40-
2. recv: type=init globalfeatures= localfeatures=0100000000
40+
2. recv: type=init globalfeatures= features=0100000000
4141
3. expect-error:
4242

4343
# If you don't support `option_data_loss_protect`, you will be ok if
4444
# we ask for it.
45-
1. $EXPECT_INIT localfeatures=00/03 !option_data_loss_protect
46-
2. recv: type=init globalfeatures= localfeatures=02 !option_data_loss_protect
45+
1. $EXPECT_INIT features=00/03 !option_data_loss_protect
46+
2. recv: type=init globalfeatures= features=02 !option_data_loss_protect
4747

4848
# If you don't support `option_data_loss_protect`, you will error if
4949
# we require it.
50-
1. $EXPECT_INIT localfeatures=00/03 !option_data_loss_protect
51-
2. recv: type=init globalfeatures= localfeatures=01 !option_data_loss_protect
50+
1. $EXPECT_INIT features=00/03 !option_data_loss_protect
51+
2. recv: type=init globalfeatures= features=01 !option_data_loss_protect
5252
3. expect-error: !option_data_loss_protect
5353

5454
# If you support `option_data_loss_protect`, you will advertize it odd.
55-
1. $EXPECT_INIT localfeatures=02/03 option_data_loss_protect/odd
55+
1. $EXPECT_INIT features=02/03 option_data_loss_protect/odd
5656

5757
# If you require `option_data_loss_protect`, you will advertize it even.
58-
1. $EXPECT_INIT localfeatures=01/03 option_data_loss_protect/even
58+
1. $EXPECT_INIT features=01/03 option_data_loss_protect/even
5959

6060
# If you don't support `option_static_remotekey`, you will be ok if
6161
# we ask for it.
62-
1. $EXPECT_INIT localfeatures=0000/3000 !option_static_remotekey
63-
2. recv: type=init globalfeatures= localfeatures=2000 !option_static_remotekey
62+
1. $EXPECT_INIT features=0000/3000 !option_static_remotekey
63+
2. recv: type=init globalfeatures= features=2000 !option_static_remotekey
6464

6565
# If you don't support `option_static_remotekey`, you will error if
6666
# we require it.
67-
1. $EXPECT_INIT localfeatures=0000/3000 !option_static_remotekey
68-
2. recv: type=init globalfeatures= localfeatures=1000 !option_static_remotekey
67+
1. $EXPECT_INIT features=0000/3000 !option_static_remotekey
68+
2. recv: type=init globalfeatures= features=1000 !option_static_remotekey
6969
3. expect-error: !option_static_remotekey
7070

7171
# If you support `option_static_remotekey`, you will advertize it odd.
72-
1. $EXPECT_INIT localfeatures=2000/3000 option_static_remotekey/odd
72+
1. $EXPECT_INIT features=2000/3000 option_static_remotekey/odd
7373

7474
# If you require `option_static_remotekey`, you will advertize it even.
75-
1. $EXPECT_INIT localfeatures=1000/3000 option_static_remotekey/even
75+
1. $EXPECT_INIT features=1000/3000 option_static_remotekey/even
7676

7777
# Note: it's undefined what you'll do if implementation requires
7878
# an option and isn't offered it. The recipient of the required feature

tests/events/bolt1-02-unknown-messages.events

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
1. connect: privkey=0000000000000000000000000000000000000000000000000000000000000003
1212
2. expect-send: type=init
13-
3. recv: type=init globalfeatures= localfeatures=
13+
3. recv: type=init globalfeatures= features=
1414

1515
1. nothing
1616

tests/events/bolt2-01-open_channel.events

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include setup.incl
66

77
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
88
3. expect-send: type=init
9-
4. recv: type=init globalfeatures= localfeatures=
9+
4. recv: type=init globalfeatures= features=
1010

1111
# Start with the 'accepter' side of an open_channel (test runner initiates)
1212
# We assume a funding_per_kw=253 Satoshi/kSipa.

tests/events/bolt2-02-add-htlc.events

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include setup.incl
1818

1919
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
2020
3. expect-send: type=init
21-
4. recv: type=init globalfeatures= localfeatures=2002
21+
4. recv: type=init globalfeatures= features=2002
2222
5. recv: type=open_channel
2323
chain_hash=06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
2424
temporary_channel_id=0000000000000000000000000000000000000000000000000000000000000000
@@ -106,7 +106,7 @@ include setup.incl
106106
3. expect-send: type=init
107107
# Note: if we opened channel with option_static_remotekey, it stands even
108108
# if we don't negotiate it again!
109-
4. recv: type=init globalfeatures= localfeatures=2002
109+
4. recv: type=init globalfeatures= features=2002
110110
5. expect-send: type=channel_reestablish
111111
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
112112
next_commitment_number=1
@@ -158,7 +158,7 @@ include setup.incl
158158
1. disconnect:
159159
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
160160
3. expect-send: type=init
161-
4. recv: type=init globalfeatures= localfeatures=2002
161+
4. recv: type=init globalfeatures= features=2002
162162
5. expect-send: type=channel_reestablish
163163
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
164164
next_commitment_number=1
@@ -216,7 +216,7 @@ include setup.incl
216216
1. disconnect:
217217
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
218218
3. expect-send: type=init
219-
4. recv: type=init globalfeatures= localfeatures=2002
219+
4. recv: type=init globalfeatures= features=2002
220220
5. expect-send: type=channel_reestablish
221221
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
222222
next_commitment_number=2
@@ -249,7 +249,7 @@ include setup.incl
249249
1. disconnect:
250250
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
251251
3. expect-send: type=init
252-
4. recv: type=init globalfeatures= localfeatures=2002
252+
4. recv: type=init globalfeatures= features=2002
253253
5. expect-send: type=channel_reestablish
254254
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
255255
next_commitment_number=2
@@ -276,7 +276,7 @@ include setup.incl
276276
1. disconnect:
277277
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
278278
3. expect-send: type=init
279-
4. recv: type=init globalfeatures= localfeatures=2002
279+
4. recv: type=init globalfeatures= features=2002
280280
5. expect-send: type=channel_reestablish
281281
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
282282
next_commitment_number=2
@@ -311,7 +311,7 @@ include setup.incl
311311
1. disconnect:
312312
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
313313
3. expect-send: type=init
314-
4. recv: type=init globalfeatures= localfeatures=2002
314+
4. recv: type=init globalfeatures= features=2002
315315
5. expect-send: type=channel_reestablish
316316
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
317317
next_commitment_number=2
@@ -350,7 +350,7 @@ include setup.incl
350350
1. disconnect:
351351
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
352352
3. expect-send: type=init
353-
4. recv: type=init globalfeatures= localfeatures=2002
353+
4. recv: type=init globalfeatures= features=2002
354354
5. expect-send: type=channel_reestablish
355355
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
356356
next_commitment_number=1
@@ -425,7 +425,7 @@ include setup.incl
425425
1. disconnect:
426426
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
427427
3. expect-send: type=init
428-
4. recv: type=init globalfeatures= localfeatures=2002
428+
4. recv: type=init globalfeatures= features=2002
429429
5. expect-send: type=channel_reestablish
430430
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
431431
next_commitment_number=2
@@ -458,7 +458,7 @@ include setup.incl
458458
1. disconnect:
459459
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
460460
3. expect-send: type=init
461-
4. recv: type=init globalfeatures= localfeatures=2002
461+
4. recv: type=init globalfeatures= features=2002
462462
5. expect-send: type=channel_reestablish
463463
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
464464
next_commitment_number=2
@@ -485,7 +485,7 @@ include setup.incl
485485
1. disconnect:
486486
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
487487
3. expect-send: type=init
488-
4. recv: type=init globalfeatures= localfeatures=2002
488+
4. recv: type=init globalfeatures= features=2002
489489
5. expect-send: type=channel_reestablish
490490
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
491491
next_commitment_number=2
@@ -520,7 +520,7 @@ include setup.incl
520520
1. disconnect:
521521
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
522522
3. expect-send: type=init
523-
4. recv: type=init globalfeatures= localfeatures=2002
523+
4. recv: type=init globalfeatures= features=2002
524524
5. expect-send: type=channel_reestablish
525525
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
526526
next_commitment_number=2

tests/events/bolt2-03-htlc-fail.events

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include setup.incl
1818

1919
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
2020
3. expect-send: type=init
21-
4. recv: type=init globalfeatures= localfeatures=2002
21+
4. recv: type=init globalfeatures= features=2002
2222
5. recv: type=open_channel
2323
chain_hash=06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
2424
temporary_channel_id=0000000000000000000000000000000000000000000000000000000000000000
@@ -136,7 +136,7 @@ include setup.incl
136136
1. disconnect:
137137
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
138138
3. expect-send: type=init
139-
4. recv: type=init globalfeatures= localfeatures=02
139+
4. recv: type=init globalfeatures= features=02
140140
5. expect-send: type=channel_reestablish
141141
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
142142
next_commitment_number=2
@@ -197,7 +197,7 @@ include setup.incl
197197
1. disconnect:
198198
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
199199
3. expect-send: type=init
200-
4. recv: type=init globalfeatures= localfeatures=02
200+
4. recv: type=init globalfeatures= features=02
201201
5. expect-send: type=channel_reestablish
202202
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
203203
next_commitment_number=2
@@ -231,7 +231,7 @@ include setup.incl
231231
1. disconnect:
232232
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
233233
3. expect-send: type=init
234-
4. recv: type=init globalfeatures= localfeatures=02
234+
4. recv: type=init globalfeatures= features=02
235235
5. expect-send: type=channel_reestablish
236236
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
237237
next_commitment_number=2
@@ -269,7 +269,7 @@ include setup.incl
269269
1. disconnect:
270270
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
271271
3. expect-send: type=init
272-
4. recv: type=init globalfeatures= localfeatures=02
272+
4. recv: type=init globalfeatures= features=02
273273
5. expect-send: type=channel_reestablish
274274
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
275275
next_commitment_number=2
@@ -300,7 +300,7 @@ include setup.incl
300300
1. disconnect:
301301
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
302302
3. expect-send: type=init
303-
4. recv: type=init globalfeatures= localfeatures=02
303+
4. recv: type=init globalfeatures= features=02
304304
5. expect-send: type=channel_reestablish
305305
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
306306
next_commitment_number=2
@@ -335,7 +335,7 @@ include setup.incl
335335
1. disconnect:
336336
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
337337
3. expect-send: type=init
338-
4. recv: type=init globalfeatures= localfeatures=02
338+
4. recv: type=init globalfeatures= features=02
339339
5. expect-send: type=channel_reestablish
340340
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
341341
next_commitment_number=2
@@ -376,7 +376,7 @@ include setup.incl
376376
1. disconnect:
377377
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
378378
3. expect-send: type=init
379-
4. recv: type=init globalfeatures= localfeatures=02
379+
4. recv: type=init globalfeatures= features=02
380380
5. expect-send: type=channel_reestablish
381381
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
382382
next_commitment_number=3
@@ -399,7 +399,7 @@ include setup.incl
399399
1. disconnect:
400400
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
401401
3. expect-send: type=init
402-
4. recv: type=init globalfeatures= localfeatures=02
402+
4. recv: type=init globalfeatures= features=02
403403
5. expect-send: type=channel_reestablish
404404
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
405405
next_commitment_number=3

tests/events/bolt2-04-htlc-fulfill.events

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include setup.incl
2222

2323
4. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
2424
5. expect-send: type=init
25-
6. recv: type=init globalfeatures= localfeatures=2002
25+
6. recv: type=init globalfeatures= features=2002
2626
7. recv: type=open_channel
2727
chain_hash=06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
2828
temporary_channel_id=0000000000000000000000000000000000000000000000000000000000000000
@@ -160,7 +160,7 @@ include setup.incl
160160
1. disconnect:
161161
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
162162
3. expect-send: type=init
163-
4. recv: type=init globalfeatures= localfeatures=02
163+
4. recv: type=init globalfeatures= features=02
164164
5. expect-send: type=channel_reestablish
165165
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
166166
next_commitment_number=2
@@ -252,7 +252,7 @@ include setup.incl
252252
1. disconnect:
253253
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
254254
3. expect-send: type=init
255-
4. recv: type=init globalfeatures= localfeatures=02
255+
4. recv: type=init globalfeatures= features=02
256256
5. expect-send: type=channel_reestablish
257257
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
258258
next_commitment_number=2
@@ -301,7 +301,7 @@ include setup.incl
301301
1. disconnect:
302302
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
303303
3. expect-send: type=init
304-
4. recv: type=init globalfeatures= localfeatures=02
304+
4. recv: type=init globalfeatures= features=02
305305
5. expect-send: type=channel_reestablish
306306
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
307307
next_commitment_number=2
@@ -376,7 +376,7 @@ include setup.incl
376376
1. disconnect:
377377
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000002
378378
3. expect-send: type=init
379-
4. recv: type=init globalfeatures= localfeatures=02
379+
4. recv: type=init globalfeatures= features=02
380380
5. expect-send: type=channel_reestablish
381381
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
382382
next_commitment_number=3

tests/events/bolt7-01-channel_announcement-success.events

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include setup.incl
66

77
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000003
88
3. expect-send: type=init
9-
4. recv: type=init localfeatures= globalfeatures=
9+
4. recv: type=init features= globalfeatures=
1010

1111
# Funding tx spending 16835ac8c154b616baac524163f41fb0c4f82c7b972ad35d4d6f18d854f6856b/1, feerate 253 to bitcoin privkeys 0000000000000000000000000000000000000000000000000000000000000010 and 0000000000000000000000000000000000000000000000000000000000000020
1212
# txid 189c40b0728f382fe91c87270926584e48e0af3a6789f37454afee6c7560311d
@@ -28,7 +28,7 @@ include setup.incl
2828
# New peer connects, asking for initial_routing_sync. We *won't* relay channel_announcement, as there is no channel_update.
2929
7. connect: privkey=0000000000000000000000000000000000000000000000000000000000000005
3030
8. expect-send: type=init
31-
9. recv: type=init localfeatures=08 globalfeatures=
31+
9. recv: type=init features=08 globalfeatures=
3232
10. must-not-send: type=channel_announcement
3333
11. disconnect:
3434

@@ -47,7 +47,7 @@ include setup.incl
4747
# Now we'll relay to a new peer.
4848
13. connect: privkey=0000000000000000000000000000000000000000000000000000000000000005
4949
14. expect-send: type=init
50-
15. recv: type=init localfeatures=08 globalfeatures=
50+
15. recv: type=init features=08 globalfeatures=
5151
16. expect-send: type=channel_announcement
5252
node_signature_1=SIG(0000000000000000000000000000000000000000000000000000000000000002:4ad0946fa8c3996015dec325c4b0540299287427ec8d8313842ce6f8dc06791a)
5353
node_signature_2=SIG(0000000000000000000000000000000000000000000000000000000000000003:4ad0946fa8c3996015dec325c4b0540299287427ec8d8313842ce6f8dc06791a)
@@ -105,6 +105,6 @@ include setup.incl
105105

106106
22. connect: privkey=0000000000000000000000000000000000000000000000000000000000000005
107107
23. expect-send: type=init
108-
24. recv: type=init localfeatures=08 globalfeatures=
108+
24. recv: type=init features=08 globalfeatures=
109109
25. must-not-send: type=channel_announcement
110110
26. must-not-send: type=channel_update

tests/events/bolt7-02-channel_announcement-failures.events

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include setup.incl
55

66
2. connect: privkey=0000000000000000000000000000000000000000000000000000000000000003
77
3. expect-send: type=init
8-
4. recv: type=init localfeatures= globalfeatures=
8+
4. recv: type=init features= globalfeatures=
99

1010
# Funding tx spending 16835ac8c154b616baac524163f41fb0c4f82c7b972ad35d4d6f18d854f6856b/1, feerate 253 to bitcoin privkeys 0000000000000000000000000000000000000000000000000000000000000010 and 0000000000000000000000000000000000000000000000000000000000000020
1111
# txid 189c40b0728f382fe91c87270926584e48e0af3a6789f37454afee6c7560311d
@@ -202,6 +202,6 @@ include setup.incl
202202
# New peer connects, asking for initial_routing_sync. We *won't* relay channel_announcement.
203203
10. connect: privkey=0000000000000000000000000000000000000000000000000000000000000005
204204
11. expect-send: type=init
205-
12. recv: type=init localfeatures=08 globalfeatures=
205+
12. recv: type=init features=08 globalfeatures=
206206
13. must-not-send: type=channel_announcement
207207
14. must-not-send: type=channel_update

0 commit comments

Comments
 (0)