mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
a7c5a1f1d2
This takes from the draft spec at https://github.com/lightningnetwork/lightning-rfc/pull/834 Note that if this draft does not get included, the peer will simply ignore the warning message (we always close the connection afterwards anyway). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: Protocol: we now report the new (draft) warning message.
9.7 KiB
9.7 KiB
1 | msgtype,init,16 |
---|---|
2 | msgdata,init,gflen,u16, |
3 | msgdata,init,globalfeatures,byte,gflen |
4 | msgdata,init,flen,u16, |
5 | msgdata,init,features,byte,flen |
6 | msgdata,init,tlvs,init_tlvs, |
7 | tlvtype,init_tlvs,networks,1 |
8 | tlvdata,init_tlvs,networks,chains,chain_hash,... |
9 | msgtype,error,17 |
10 | msgdata,error,channel_id,channel_id, |
11 | msgdata,error,len,u16, |
12 | msgdata,error,data,byte,len |
13 | msgtype,warning,1 |
14 | msgdata,warning,channel_id,channel_id, |
15 | msgdata,warning,len,u16, |
16 | msgdata,warning,data,byte,len |
17 | msgtype,ping,18 |
18 | msgdata,ping,num_pong_bytes,u16, |
19 | msgdata,ping,byteslen,u16, |
20 | msgdata,ping,ignored,byte,byteslen |
21 | msgtype,pong,19 |
22 | msgdata,pong,byteslen,u16, |
23 | msgdata,pong,ignored,byte,byteslen |
24 | tlvtype,n1,tlv1,1 |
25 | tlvdata,n1,tlv1,amount_msat,tu64, |
26 | tlvtype,n1,tlv2,2 |
27 | tlvdata,n1,tlv2,scid,short_channel_id, |
28 | tlvtype,n1,tlv3,3 |
29 | tlvdata,n1,tlv3,node_id,point, |
30 | tlvdata,n1,tlv3,amount_msat_1,u64, |
31 | tlvdata,n1,tlv3,amount_msat_2,u64, |
32 | tlvtype,n1,tlv4,254 |
33 | tlvdata,n1,tlv4,cltv_delta,u16, |
34 | tlvtype,n2,tlv1,0 |
35 | tlvdata,n2,tlv1,amount_msat,tu64, |
36 | tlvtype,n2,tlv2,11 |
37 | tlvdata,n2,tlv2,cltv_expiry,tu32, |
38 | msgtype,open_channel,32 |
39 | msgdata,open_channel,chain_hash,chain_hash, |
40 | msgdata,open_channel,temporary_channel_id,byte,32 |
41 | msgdata,open_channel,funding_satoshis,u64, |
42 | msgdata,open_channel,push_msat,u64, |
43 | msgdata,open_channel,dust_limit_satoshis,u64, |
44 | msgdata,open_channel,max_htlc_value_in_flight_msat,u64, |
45 | msgdata,open_channel,channel_reserve_satoshis,u64, |
46 | msgdata,open_channel,htlc_minimum_msat,u64, |
47 | msgdata,open_channel,feerate_per_kw,u32, |
48 | msgdata,open_channel,to_self_delay,u16, |
49 | msgdata,open_channel,max_accepted_htlcs,u16, |
50 | msgdata,open_channel,funding_pubkey,point, |
51 | msgdata,open_channel,revocation_basepoint,point, |
52 | msgdata,open_channel,payment_basepoint,point, |
53 | msgdata,open_channel,delayed_payment_basepoint,point, |
54 | msgdata,open_channel,htlc_basepoint,point, |
55 | msgdata,open_channel,first_per_commitment_point,point, |
56 | msgdata,open_channel,channel_flags,byte, |
57 | msgdata,open_channel,tlvs,open_channel_tlvs, |
58 | tlvtype,open_channel_tlvs,upfront_shutdown_script,0 |
59 | tlvdata,open_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,... |
60 | msgtype,accept_channel,33 |
61 | msgdata,accept_channel,temporary_channel_id,byte,32 |
62 | msgdata,accept_channel,dust_limit_satoshis,u64, |
63 | msgdata,accept_channel,max_htlc_value_in_flight_msat,u64, |
64 | msgdata,accept_channel,channel_reserve_satoshis,u64, |
65 | msgdata,accept_channel,htlc_minimum_msat,u64, |
66 | msgdata,accept_channel,minimum_depth,u32, |
67 | msgdata,accept_channel,to_self_delay,u16, |
68 | msgdata,accept_channel,max_accepted_htlcs,u16, |
69 | msgdata,accept_channel,funding_pubkey,point, |
70 | msgdata,accept_channel,revocation_basepoint,point, |
71 | msgdata,accept_channel,payment_basepoint,point, |
72 | msgdata,accept_channel,delayed_payment_basepoint,point, |
73 | msgdata,accept_channel,htlc_basepoint,point, |
74 | msgdata,accept_channel,first_per_commitment_point,point, |
75 | msgdata,accept_channel,tlvs,accept_channel_tlvs, |
76 | tlvtype,accept_channel_tlvs,upfront_shutdown_script,0 |
77 | tlvdata,accept_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,... |
78 | msgtype,funding_created,34 |
79 | msgdata,funding_created,temporary_channel_id,byte,32 |
80 | msgdata,funding_created,funding_txid,sha256, |
81 | msgdata,funding_created,funding_output_index,u16, |
82 | msgdata,funding_created,signature,signature, |
83 | msgtype,funding_signed,35 |
84 | msgdata,funding_signed,channel_id,channel_id, |
85 | msgdata,funding_signed,signature,signature, |
86 | msgtype,funding_locked,36 |
87 | msgdata,funding_locked,channel_id,channel_id, |
88 | msgdata,funding_locked,next_per_commitment_point,point, |
89 | msgtype,shutdown,38 |
90 | msgdata,shutdown,channel_id,channel_id, |
91 | msgdata,shutdown,len,u16, |
92 | msgdata,shutdown,scriptpubkey,byte,len |
93 | msgtype,closing_signed,39 |
94 | msgdata,closing_signed,channel_id,channel_id, |
95 | msgdata,closing_signed,fee_satoshis,u64, |
96 | msgdata,closing_signed,signature,signature, |
97 | msgtype,update_add_htlc,128 |
98 | msgdata,update_add_htlc,channel_id,channel_id, |
99 | msgdata,update_add_htlc,id,u64, |
100 | msgdata,update_add_htlc,amount_msat,u64, |
101 | msgdata,update_add_htlc,payment_hash,sha256, |
102 | msgdata,update_add_htlc,cltv_expiry,u32, |
103 | msgdata,update_add_htlc,onion_routing_packet,byte,1366 |
104 | msgtype,update_fulfill_htlc,130 |
105 | msgdata,update_fulfill_htlc,channel_id,channel_id, |
106 | msgdata,update_fulfill_htlc,id,u64, |
107 | msgdata,update_fulfill_htlc,payment_preimage,byte,32 |
108 | msgtype,update_fail_htlc,131 |
109 | msgdata,update_fail_htlc,channel_id,channel_id, |
110 | msgdata,update_fail_htlc,id,u64, |
111 | msgdata,update_fail_htlc,len,u16, |
112 | msgdata,update_fail_htlc,reason,byte,len |
113 | msgtype,update_fail_malformed_htlc,135 |
114 | msgdata,update_fail_malformed_htlc,channel_id,channel_id, |
115 | msgdata,update_fail_malformed_htlc,id,u64, |
116 | msgdata,update_fail_malformed_htlc,sha256_of_onion,sha256, |
117 | msgdata,update_fail_malformed_htlc,failure_code,u16, |
118 | msgtype,commitment_signed,132 |
119 | msgdata,commitment_signed,channel_id,channel_id, |
120 | msgdata,commitment_signed,signature,signature, |
121 | msgdata,commitment_signed,num_htlcs,u16, |
122 | msgdata,commitment_signed,htlc_signature,signature,num_htlcs |
123 | msgtype,revoke_and_ack,133 |
124 | msgdata,revoke_and_ack,channel_id,channel_id, |
125 | msgdata,revoke_and_ack,per_commitment_secret,byte,32 |
126 | msgdata,revoke_and_ack,next_per_commitment_point,point, |
127 | msgtype,update_fee,134 |
128 | msgdata,update_fee,channel_id,channel_id, |
129 | msgdata,update_fee,feerate_per_kw,u32, |
130 | msgtype,channel_reestablish,136 |
131 | msgdata,channel_reestablish,channel_id,channel_id, |
132 | msgdata,channel_reestablish,next_commitment_number,u64, |
133 | msgdata,channel_reestablish,next_revocation_number,u64, |
134 | msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32 |
135 | msgdata,channel_reestablish,my_current_per_commitment_point,point, |
136 | msgtype,announcement_signatures,259 |
137 | msgdata,announcement_signatures,channel_id,channel_id, |
138 | msgdata,announcement_signatures,short_channel_id,short_channel_id, |
139 | msgdata,announcement_signatures,node_signature,signature, |
140 | msgdata,announcement_signatures,bitcoin_signature,signature, |
141 | msgtype,channel_announcement,256 |
142 | msgdata,channel_announcement,node_signature_1,signature, |
143 | msgdata,channel_announcement,node_signature_2,signature, |
144 | msgdata,channel_announcement,bitcoin_signature_1,signature, |
145 | msgdata,channel_announcement,bitcoin_signature_2,signature, |
146 | msgdata,channel_announcement,len,u16, |
147 | msgdata,channel_announcement,features,byte,len |
148 | msgdata,channel_announcement,chain_hash,chain_hash, |
149 | msgdata,channel_announcement,short_channel_id,short_channel_id, |
150 | msgdata,channel_announcement,node_id_1,point, |
151 | msgdata,channel_announcement,node_id_2,point, |
152 | msgdata,channel_announcement,bitcoin_key_1,point, |
153 | msgdata,channel_announcement,bitcoin_key_2,point, |
154 | msgtype,node_announcement,257 |
155 | msgdata,node_announcement,signature,signature, |
156 | msgdata,node_announcement,flen,u16, |
157 | msgdata,node_announcement,features,byte,flen |
158 | msgdata,node_announcement,timestamp,u32, |
159 | msgdata,node_announcement,node_id,point, |
160 | msgdata,node_announcement,rgb_color,byte,3 |
161 | msgdata,node_announcement,alias,byte,32 |
162 | msgdata,node_announcement,addrlen,u16, |
163 | msgdata,node_announcement,addresses,byte,addrlen |
164 | msgtype,channel_update,258 |
165 | msgdata,channel_update,signature,signature, |
166 | msgdata,channel_update,chain_hash,chain_hash, |
167 | msgdata,channel_update,short_channel_id,short_channel_id, |
168 | msgdata,channel_update,timestamp,u32, |
169 | msgdata,channel_update,message_flags,byte, |
170 | msgdata,channel_update,channel_flags,byte, |
171 | msgdata,channel_update,cltv_expiry_delta,u16, |
172 | msgdata,channel_update,htlc_minimum_msat,u64, |
173 | msgdata,channel_update,fee_base_msat,u32, |
174 | msgdata,channel_update,fee_proportional_millionths,u32, |
175 | msgdata,channel_update,htlc_maximum_msat,u64,,option_channel_htlc_max |
176 | msgtype,query_short_channel_ids,261,gossip_queries |
177 | msgdata,query_short_channel_ids,chain_hash,chain_hash, |
178 | msgdata,query_short_channel_ids,len,u16, |
179 | msgdata,query_short_channel_ids,encoded_short_ids,byte,len |
180 | msgdata,query_short_channel_ids,tlvs,query_short_channel_ids_tlvs, |
181 | tlvtype,query_short_channel_ids_tlvs,query_flags,1 |
182 | tlvdata,query_short_channel_ids_tlvs,query_flags,encoding_type,byte, |
183 | tlvdata,query_short_channel_ids_tlvs,query_flags,encoded_query_flags,byte,... |
184 | msgtype,reply_short_channel_ids_end,262,gossip_queries |
185 | msgdata,reply_short_channel_ids_end,chain_hash,chain_hash, |
186 | msgdata,reply_short_channel_ids_end,full_information,byte, |
187 | msgtype,query_channel_range,263,gossip_queries |
188 | msgdata,query_channel_range,chain_hash,chain_hash, |
189 | msgdata,query_channel_range,first_blocknum,u32, |
190 | msgdata,query_channel_range,number_of_blocks,u32, |
191 | msgdata,query_channel_range,tlvs,query_channel_range_tlvs, |
192 | tlvtype,query_channel_range_tlvs,query_option,1 |
193 | tlvdata,query_channel_range_tlvs,query_option,query_option_flags,bigsize, |
194 | msgtype,reply_channel_range,264,gossip_queries |
195 | msgdata,reply_channel_range,chain_hash,chain_hash, |
196 | msgdata,reply_channel_range,first_blocknum,u32, |
197 | msgdata,reply_channel_range,number_of_blocks,u32, |
198 | msgdata,reply_channel_range,full_information,byte, |
199 | msgdata,reply_channel_range,len,u16, |
200 | msgdata,reply_channel_range,encoded_short_ids,byte,len |
201 | msgdata,reply_channel_range,tlvs,reply_channel_range_tlvs, |
202 | tlvtype,reply_channel_range_tlvs,timestamps_tlv,1 |
203 | tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoding_type,byte, |
204 | tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoded_timestamps,byte,... |
205 | tlvtype,reply_channel_range_tlvs,checksums_tlv,3 |
206 | tlvdata,reply_channel_range_tlvs,checksums_tlv,checksums,channel_update_checksums,... |
207 | subtype,channel_update_timestamps |
208 | subtypedata,channel_update_timestamps,timestamp_node_id_1,u32, |
209 | subtypedata,channel_update_timestamps,timestamp_node_id_2,u32, |
210 | subtype,channel_update_checksums |
211 | subtypedata,channel_update_checksums,checksum_node_id_1,u32, |
212 | subtypedata,channel_update_checksums,checksum_node_id_2,u32, |
213 | msgtype,gossip_timestamp_filter,265,gossip_queries |
214 | msgdata,gossip_timestamp_filter,chain_hash,chain_hash, |
215 | msgdata,gossip_timestamp_filter,first_timestamp,u32, |
216 | msgdata,gossip_timestamp_filter,timestamp_range,u32, |
217 | msgtype,onion_message,385,option_onion_messages |
218 | msgdata,onion_message,len,u16, |
219 | msgdata,onion_message,onionmsg,byte,len |
220 | msgdata,onion_message,onion_message_tlvs,onion_message_tlvs, |
221 | tlvtype,onion_message_tlvs,blinding,2 |
222 | tlvdata,onion_message_tlvs,blinding,blinding,point, |