mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
23a6c00496
It also gets rid of the requirement that close negotiation fee maximum is the old commitment transaction. We still do that, however, to avoid surprising old peers. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
15 KiB
15 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,tx_add_input,66 |
39 | msgdata,tx_add_input,channel_id,channel_id, |
40 | msgdata,tx_add_input,serial_id,u64, |
41 | msgdata,tx_add_input,prevtx_len,u16, |
42 | msgdata,tx_add_input,prevtx,byte,prevtx_len |
43 | msgdata,tx_add_input,prevtx_vout,u32, |
44 | msgdata,tx_add_input,sequence,u32, |
45 | msgdata,tx_add_input,script_sig_len,u16, |
46 | msgdata,tx_add_input,script_sig,byte,script_sig_len |
47 | msgtype,tx_add_output,67 |
48 | msgdata,tx_add_output,channel_id,channel_id, |
49 | msgdata,tx_add_output,serial_id,u64, |
50 | msgdata,tx_add_output,sats,u64, |
51 | msgdata,tx_add_output,scriptlen,u16, |
52 | msgdata,tx_add_output,script,byte,scriptlen |
53 | msgtype,tx_remove_input,68 |
54 | msgdata,tx_remove_input,channel_id,channel_id, |
55 | msgdata,tx_remove_input,serial_id,u64, |
56 | msgtype,tx_remove_output,69 |
57 | msgdata,tx_remove_output,channel_id,channel_id, |
58 | msgdata,tx_remove_output,serial_id,u64, |
59 | msgtype,tx_complete,70 |
60 | msgdata,tx_complete,channel_id,channel_id, |
61 | msgtype,tx_signatures,71 |
62 | msgdata,tx_signatures,channel_id,channel_id, |
63 | msgdata,tx_signatures,txid,sha256, |
64 | msgdata,tx_signatures,num_witnesses,u16, |
65 | msgdata,tx_signatures,witness_stack,witness_stack,num_witnesses |
66 | subtype,witness_stack |
67 | subtypedata,witness_stack,num_input_witness,u16, |
68 | subtypedata,witness_stack,witness_element,witness_element,num_input_witness |
69 | subtype,witness_element |
70 | subtypedata,witness_element,len,u16, |
71 | subtypedata,witness_element,witness,byte,len |
72 | msgtype,open_channel,32 |
73 | msgdata,open_channel,chain_hash,chain_hash, |
74 | msgdata,open_channel,temporary_channel_id,byte,32 |
75 | msgdata,open_channel,funding_satoshis,u64, |
76 | msgdata,open_channel,push_msat,u64, |
77 | msgdata,open_channel,dust_limit_satoshis,u64, |
78 | msgdata,open_channel,max_htlc_value_in_flight_msat,u64, |
79 | msgdata,open_channel,channel_reserve_satoshis,u64, |
80 | msgdata,open_channel,htlc_minimum_msat,u64, |
81 | msgdata,open_channel,feerate_per_kw,u32, |
82 | msgdata,open_channel,to_self_delay,u16, |
83 | msgdata,open_channel,max_accepted_htlcs,u16, |
84 | msgdata,open_channel,funding_pubkey,point, |
85 | msgdata,open_channel,revocation_basepoint,point, |
86 | msgdata,open_channel,payment_basepoint,point, |
87 | msgdata,open_channel,delayed_payment_basepoint,point, |
88 | msgdata,open_channel,htlc_basepoint,point, |
89 | msgdata,open_channel,first_per_commitment_point,point, |
90 | msgdata,open_channel,channel_flags,byte, |
91 | msgdata,open_channel,tlvs,open_channel_tlvs, |
92 | tlvtype,open_channel_tlvs,upfront_shutdown_script,0 |
93 | tlvdata,open_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,... |
94 | tlvtype,open_channel_tlvs,channel_type,1 |
95 | tlvdata,open_channel_tlvs,channel_type,type,byte,... |
96 | msgtype,accept_channel,33 |
97 | msgdata,accept_channel,temporary_channel_id,byte,32 |
98 | msgdata,accept_channel,dust_limit_satoshis,u64, |
99 | msgdata,accept_channel,max_htlc_value_in_flight_msat,u64, |
100 | msgdata,accept_channel,channel_reserve_satoshis,u64, |
101 | msgdata,accept_channel,htlc_minimum_msat,u64, |
102 | msgdata,accept_channel,minimum_depth,u32, |
103 | msgdata,accept_channel,to_self_delay,u16, |
104 | msgdata,accept_channel,max_accepted_htlcs,u16, |
105 | msgdata,accept_channel,funding_pubkey,point, |
106 | msgdata,accept_channel,revocation_basepoint,point, |
107 | msgdata,accept_channel,payment_basepoint,point, |
108 | msgdata,accept_channel,delayed_payment_basepoint,point, |
109 | msgdata,accept_channel,htlc_basepoint,point, |
110 | msgdata,accept_channel,first_per_commitment_point,point, |
111 | msgdata,accept_channel,tlvs,accept_channel_tlvs, |
112 | tlvtype,accept_channel_tlvs,upfront_shutdown_script,0 |
113 | tlvdata,accept_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,... |
114 | tlvtype,accept_channel_tlvs,channel_type,1 |
115 | tlvdata,accept_channel_tlvs,channel_type,type,byte,... |
116 | msgtype,funding_created,34 |
117 | msgdata,funding_created,temporary_channel_id,byte,32 |
118 | msgdata,funding_created,funding_txid,sha256, |
119 | msgdata,funding_created,funding_output_index,u16, |
120 | msgdata,funding_created,signature,signature, |
121 | msgtype,funding_signed,35 |
122 | msgdata,funding_signed,channel_id,channel_id, |
123 | msgdata,funding_signed,signature,signature, |
124 | msgtype,funding_locked,36 |
125 | msgdata,funding_locked,channel_id,channel_id, |
126 | msgdata,funding_locked,next_per_commitment_point,point, |
127 | msgtype,open_channel2,64 |
128 | msgdata,open_channel2,chain_hash,chain_hash, |
129 | msgdata,open_channel2,channel_id,channel_id, |
130 | msgdata,open_channel2,funding_feerate_perkw,u32, |
131 | msgdata,open_channel2,commitment_feerate_perkw,u32, |
132 | msgdata,open_channel2,funding_satoshis,u64, |
133 | msgdata,open_channel2,dust_limit_satoshis,u64, |
134 | msgdata,open_channel2,max_htlc_value_in_flight_msat,u64, |
135 | msgdata,open_channel2,htlc_minimum_msat,u64, |
136 | msgdata,open_channel2,to_self_delay,u16, |
137 | msgdata,open_channel2,max_accepted_htlcs,u16, |
138 | msgdata,open_channel2,locktime,u32, |
139 | msgdata,open_channel2,funding_pubkey,point, |
140 | msgdata,open_channel2,revocation_basepoint,point, |
141 | msgdata,open_channel2,payment_basepoint,point, |
142 | msgdata,open_channel2,delayed_payment_basepoint,point, |
143 | msgdata,open_channel2,htlc_basepoint,point, |
144 | msgdata,open_channel2,first_per_commitment_point,point, |
145 | msgdata,open_channel2,channel_flags,byte, |
146 | msgdata,open_channel2,tlvs,opening_tlvs, |
147 | tlvtype,opening_tlvs,option_upfront_shutdown_script,1 |
148 | tlvdata,opening_tlvs,option_upfront_shutdown_script,shutdown_len,u16, |
149 | tlvdata,opening_tlvs,option_upfront_shutdown_script,shutdown_scriptpubkey,byte,shutdown_len |
150 | tlvtype,opening_tlvs,request_funds,3 |
151 | tlvdata,opening_tlvs,request_funds,requested_sats,u64, |
152 | tlvdata,opening_tlvs,request_funds,blockheight,u32, |
153 | msgtype,accept_channel2,65 |
154 | msgdata,accept_channel2,channel_id,channel_id, |
155 | msgdata,accept_channel2,funding_satoshis,u64, |
156 | msgdata,accept_channel2,dust_limit_satoshis,u64, |
157 | msgdata,accept_channel2,max_htlc_value_in_flight_msat,u64, |
158 | msgdata,accept_channel2,htlc_minimum_msat,u64, |
159 | msgdata,accept_channel2,minimum_depth,u32, |
160 | msgdata,accept_channel2,to_self_delay,u16, |
161 | msgdata,accept_channel2,max_accepted_htlcs,u16, |
162 | msgdata,accept_channel2,funding_pubkey,point, |
163 | msgdata,accept_channel2,revocation_basepoint,point, |
164 | msgdata,accept_channel2,payment_basepoint,point, |
165 | msgdata,accept_channel2,delayed_payment_basepoint,point, |
166 | msgdata,accept_channel2,htlc_basepoint,point, |
167 | msgdata,accept_channel2,first_per_commitment_point,point, |
168 | msgdata,accept_channel2,tlvs,accept_tlvs, |
169 | tlvtype,accept_tlvs,option_upfront_shutdown_script,1 |
170 | tlvdata,accept_tlvs,option_upfront_shutdown_script,shutdown_len,u16, |
171 | tlvdata,accept_tlvs,option_upfront_shutdown_script,shutdown_scriptpubkey,byte,shutdown_len |
172 | tlvtype,accept_tlvs,will_fund,2 |
173 | tlvdata,accept_tlvs,will_fund,signature,signature, |
174 | tlvdata,accept_tlvs,will_fund,lease_rates,lease_rates, |
175 | subtype,lease_rates |
176 | subtypedata,lease_rates,funding_weight,u16, |
177 | subtypedata,lease_rates,lease_fee_basis,u16, |
178 | subtypedata,lease_rates,channel_fee_max_proportional_thousandths,u16, |
179 | subtypedata,lease_rates,lease_fee_base_sat,u32, |
180 | subtypedata,lease_rates,channel_fee_max_base_msat,tu32, |
181 | msgtype,init_rbf,72 |
182 | msgdata,init_rbf,channel_id,channel_id, |
183 | msgdata,init_rbf,funding_satoshis,u64, |
184 | msgdata,init_rbf,locktime,u32, |
185 | msgdata,init_rbf,funding_feerate_perkw,u32, |
186 | msgtype,ack_rbf,73 |
187 | msgdata,ack_rbf,channel_id,channel_id, |
188 | msgdata,ack_rbf,funding_satoshis,u64, |
189 | msgtype,shutdown,38 |
190 | msgdata,shutdown,channel_id,channel_id, |
191 | msgdata,shutdown,len,u16, |
192 | msgdata,shutdown,scriptpubkey,byte,len |
193 | msgdata,shutdown,tlvs,shutdown_tlvs, |
194 | tlvtype,shutdown_tlvs,wrong_funding,100 |
195 | tlvdata,shutdown_tlvs,wrong_funding,txid,sha256, |
196 | tlvdata,shutdown_tlvs,wrong_funding,outnum,u32, |
197 | msgtype,closing_signed,39 |
198 | msgdata,closing_signed,channel_id,channel_id, |
199 | msgdata,closing_signed,fee_satoshis,u64, |
200 | msgdata,closing_signed,signature,signature, |
201 | msgdata,closing_signed,tlvs,closing_signed_tlvs, |
202 | tlvtype,closing_signed_tlvs,fee_range,1 |
203 | tlvdata,closing_signed_tlvs,fee_range,min_fee_satoshis,u64, |
204 | tlvdata,closing_signed_tlvs,fee_range,max_fee_satoshis,u64, |
205 | msgtype,update_add_htlc,128 |
206 | msgdata,update_add_htlc,channel_id,channel_id, |
207 | msgdata,update_add_htlc,id,u64, |
208 | msgdata,update_add_htlc,amount_msat,u64, |
209 | msgdata,update_add_htlc,payment_hash,sha256, |
210 | msgdata,update_add_htlc,cltv_expiry,u32, |
211 | msgdata,update_add_htlc,onion_routing_packet,byte,1366 |
212 | msgtype,update_fulfill_htlc,130 |
213 | msgdata,update_fulfill_htlc,channel_id,channel_id, |
214 | msgdata,update_fulfill_htlc,id,u64, |
215 | msgdata,update_fulfill_htlc,payment_preimage,byte,32 |
216 | msgtype,update_fail_htlc,131 |
217 | msgdata,update_fail_htlc,channel_id,channel_id, |
218 | msgdata,update_fail_htlc,id,u64, |
219 | msgdata,update_fail_htlc,len,u16, |
220 | msgdata,update_fail_htlc,reason,byte,len |
221 | msgtype,update_fail_malformed_htlc,135 |
222 | msgdata,update_fail_malformed_htlc,channel_id,channel_id, |
223 | msgdata,update_fail_malformed_htlc,id,u64, |
224 | msgdata,update_fail_malformed_htlc,sha256_of_onion,sha256, |
225 | msgdata,update_fail_malformed_htlc,failure_code,u16, |
226 | msgtype,commitment_signed,132 |
227 | msgdata,commitment_signed,channel_id,channel_id, |
228 | msgdata,commitment_signed,signature,signature, |
229 | msgdata,commitment_signed,num_htlcs,u16, |
230 | msgdata,commitment_signed,htlc_signature,signature,num_htlcs |
231 | msgtype,revoke_and_ack,133 |
232 | msgdata,revoke_and_ack,channel_id,channel_id, |
233 | msgdata,revoke_and_ack,per_commitment_secret,byte,32 |
234 | msgdata,revoke_and_ack,next_per_commitment_point,point, |
235 | msgtype,update_fee,134 |
236 | msgdata,update_fee,channel_id,channel_id, |
237 | msgdata,update_fee,feerate_per_kw,u32, |
238 | msgtype,update_blockheight,137 |
239 | msgdata,update_blockheight,channel_id,channel_id, |
240 | msgdata,update_blockheight,blockheight,u32, |
241 | msgtype,channel_reestablish,136 |
242 | msgdata,channel_reestablish,channel_id,channel_id, |
243 | msgdata,channel_reestablish,next_commitment_number,u64, |
244 | msgdata,channel_reestablish,next_revocation_number,u64, |
245 | msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32 |
246 | msgdata,channel_reestablish,my_current_per_commitment_point,point, |
247 | msgtype,announcement_signatures,259 |
248 | msgdata,announcement_signatures,channel_id,channel_id, |
249 | msgdata,announcement_signatures,short_channel_id,short_channel_id, |
250 | msgdata,announcement_signatures,node_signature,signature, |
251 | msgdata,announcement_signatures,bitcoin_signature,signature, |
252 | msgtype,channel_announcement,256 |
253 | msgdata,channel_announcement,node_signature_1,signature, |
254 | msgdata,channel_announcement,node_signature_2,signature, |
255 | msgdata,channel_announcement,bitcoin_signature_1,signature, |
256 | msgdata,channel_announcement,bitcoin_signature_2,signature, |
257 | msgdata,channel_announcement,len,u16, |
258 | msgdata,channel_announcement,features,byte,len |
259 | msgdata,channel_announcement,chain_hash,chain_hash, |
260 | msgdata,channel_announcement,short_channel_id,short_channel_id, |
261 | msgdata,channel_announcement,node_id_1,point, |
262 | msgdata,channel_announcement,node_id_2,point, |
263 | msgdata,channel_announcement,bitcoin_key_1,point, |
264 | msgdata,channel_announcement,bitcoin_key_2,point, |
265 | msgtype,node_announcement,257 |
266 | msgdata,node_announcement,signature,signature, |
267 | msgdata,node_announcement,flen,u16, |
268 | msgdata,node_announcement,features,byte,flen |
269 | msgdata,node_announcement,timestamp,u32, |
270 | msgdata,node_announcement,node_id,point, |
271 | msgdata,node_announcement,rgb_color,byte,3 |
272 | msgdata,node_announcement,alias,byte,32 |
273 | msgdata,node_announcement,addrlen,u16, |
274 | msgdata,node_announcement,addresses,byte,addrlen |
275 | msgdata,node_announcement,tlvs,node_ann_tlvs, |
276 | tlvtype,node_ann_tlvs,option_will_fund,1 |
277 | tlvdata,node_ann_tlvs,option_will_fund,lease_rates,lease_rates, |
278 | msgtype,channel_update,258 |
279 | msgdata,channel_update,signature,signature, |
280 | msgdata,channel_update,chain_hash,chain_hash, |
281 | msgdata,channel_update,short_channel_id,short_channel_id, |
282 | msgdata,channel_update,timestamp,u32, |
283 | msgdata,channel_update,message_flags,byte, |
284 | msgdata,channel_update,channel_flags,byte, |
285 | msgdata,channel_update,cltv_expiry_delta,u16, |
286 | msgdata,channel_update,htlc_minimum_msat,u64, |
287 | msgdata,channel_update,fee_base_msat,u32, |
288 | msgdata,channel_update,fee_proportional_millionths,u32, |
289 | msgdata,channel_update,htlc_maximum_msat,u64,,option_channel_htlc_max |
290 | msgtype,query_short_channel_ids,261,gossip_queries |
291 | msgdata,query_short_channel_ids,chain_hash,chain_hash, |
292 | msgdata,query_short_channel_ids,len,u16, |
293 | msgdata,query_short_channel_ids,encoded_short_ids,byte,len |
294 | msgdata,query_short_channel_ids,tlvs,query_short_channel_ids_tlvs, |
295 | tlvtype,query_short_channel_ids_tlvs,query_flags,1 |
296 | tlvdata,query_short_channel_ids_tlvs,query_flags,encoding_type,byte, |
297 | tlvdata,query_short_channel_ids_tlvs,query_flags,encoded_query_flags,byte,... |
298 | msgtype,reply_short_channel_ids_end,262,gossip_queries |
299 | msgdata,reply_short_channel_ids_end,chain_hash,chain_hash, |
300 | msgdata,reply_short_channel_ids_end,full_information,byte, |
301 | msgtype,query_channel_range,263,gossip_queries |
302 | msgdata,query_channel_range,chain_hash,chain_hash, |
303 | msgdata,query_channel_range,first_blocknum,u32, |
304 | msgdata,query_channel_range,number_of_blocks,u32, |
305 | msgdata,query_channel_range,tlvs,query_channel_range_tlvs, |
306 | tlvtype,query_channel_range_tlvs,query_option,1 |
307 | tlvdata,query_channel_range_tlvs,query_option,query_option_flags,bigsize, |
308 | msgtype,reply_channel_range,264,gossip_queries |
309 | msgdata,reply_channel_range,chain_hash,chain_hash, |
310 | msgdata,reply_channel_range,first_blocknum,u32, |
311 | msgdata,reply_channel_range,number_of_blocks,u32, |
312 | msgdata,reply_channel_range,sync_complete,byte, |
313 | msgdata,reply_channel_range,len,u16, |
314 | msgdata,reply_channel_range,encoded_short_ids,byte,len |
315 | msgdata,reply_channel_range,tlvs,reply_channel_range_tlvs, |
316 | tlvtype,reply_channel_range_tlvs,timestamps_tlv,1 |
317 | tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoding_type,byte, |
318 | tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoded_timestamps,byte,... |
319 | tlvtype,reply_channel_range_tlvs,checksums_tlv,3 |
320 | tlvdata,reply_channel_range_tlvs,checksums_tlv,checksums,channel_update_checksums,... |
321 | subtype,channel_update_timestamps |
322 | subtypedata,channel_update_timestamps,timestamp_node_id_1,u32, |
323 | subtypedata,channel_update_timestamps,timestamp_node_id_2,u32, |
324 | subtype,channel_update_checksums |
325 | subtypedata,channel_update_checksums,checksum_node_id_1,u32, |
326 | subtypedata,channel_update_checksums,checksum_node_id_2,u32, |
327 | msgtype,gossip_timestamp_filter,265,gossip_queries |
328 | msgdata,gossip_timestamp_filter,chain_hash,chain_hash, |
329 | msgdata,gossip_timestamp_filter,first_timestamp,u32, |
330 | msgdata,gossip_timestamp_filter,timestamp_range,u32, |
331 | msgtype,onion_message,385,option_onion_messages |
332 | msgdata,onion_message,len,u16, |
333 | msgdata,onion_message,onionmsg,byte,len |
334 | msgdata,onion_message,onion_message_tlvs,onion_message_tlvs, |
335 | tlvtype,onion_message_tlvs,blinding,2 |
336 | tlvdata,onion_message_tlvs,blinding,blinding,point, |