Skip to content

Commit da0bae6

Browse files
committed
EXPERIMENTAL_FEATURES: import channel_type from lightning/bolts#880
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 4a1918d commit da0bae6

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/wire/peer_wire.csv b/wire/peer_wire.csv
2+
index 40b78f175..e14d39fdc 100644
3+
--- a/wire/peer_wire.csv
4+
+++ b/wire/peer_wire.csv
5+
@@ -91,6 +91,11 @@ msgdata,open_channel,channel_flags,byte,
6+
msgdata,open_channel,tlvs,open_channel_tlvs,
7+
tlvtype,open_channel_tlvs,upfront_shutdown_script,0
8+
tlvdata,open_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,...
9+
+tlvtype,open_channel_tlvs,channel_types,1
10+
+tlvdata,open_channel_tlvs,channel_types,types,channel_type,...
11+
+subtype,channel_type
12+
+subtypedata,channel_type,len,u16,
13+
+subtypedata,channel_type,features,byte,len
14+
msgtype,accept_channel,33
15+
msgdata,accept_channel,temporary_channel_id,byte,32
16+
msgdata,accept_channel,dust_limit_satoshis,u64,
17+
@@ -109,6 +114,8 @@ msgdata,accept_channel,first_per_commitment_point,point,
18+
msgdata,accept_channel,tlvs,accept_channel_tlvs,
19+
tlvtype,accept_channel_tlvs,upfront_shutdown_script,0
20+
tlvdata,accept_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,...
21+
+tlvtype,accept_channel_tlvs,channel_type,1
22+
+tlvdata,accept_channel_tlvs,channel_type,type,channel_type,
23+
msgtype,funding_created,34
24+
msgdata,funding_created,temporary_channel_id,byte,32
25+
msgdata,funding_created,funding_txid,sha256,

wire/extracted_peer_exp_upgradable.patch

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- wire/peer_wire.csv 2021-05-09 15:44:59.166135652 +0930
22
+++ wire/peer_wire.csv.raw 2021-05-11 09:59:31.695459756 +0930
3-
@@ -221,6 +131,18 @@
3+
@@ -221,6 +131,15 @@
44
msgdata,channel_reestablish,next_revocation_number,u64,
55
msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32
66
msgdata,channel_reestablish,my_current_per_commitment_point,point,
@@ -13,9 +13,6 @@
1313
+tlvdata,channel_reestablish_tlvs,current_type,type,channel_type,
1414
+tlvtype,channel_reestablish_tlvs,upgradable,7
1515
+tlvdata,channel_reestablish_tlvs,upgradable,upgrades,channel_type,...
16-
+subtype,channel_type
17-
+subtypedata,channel_type,len,u16,
18-
+subtypedata,channel_type,features,byte,len
1916
msgtype,announcement_signatures,259
2017
msgdata,announcement_signatures,channel_id,channel_id,
2118
msgdata,announcement_signatures,short_channel_id,short_channel_id,

0 commit comments

Comments
 (0)