Browse Source
updates the bolt version to 6639cef095a2ecc7b8f0c48c6e7f2f906fbfbc58. this requires us to use the new bolt parser at generate-bolt.py and updates to all of the type specifications (ie. from u8 -> byte)pull/2938/head
lisa neigut
6 years ago
committed by
Rusty Russell
16 changed files with 315 additions and 288 deletions
@ -1,41 +1,41 @@ |
|||||
#include <wire/onion_defs.h> |
#include <wire/onion_defs.h> |
||||
invalid_realm,PERM|1 |
msgtype,invalid_realm,PERM|1 |
||||
temporary_node_failure,NODE|2 |
msgtype,temporary_node_failure,NODE|2 |
||||
permanent_node_failure,PERM|NODE|2 |
msgtype,permanent_node_failure,PERM|NODE|2 |
||||
required_node_feature_missing,PERM|NODE|3 |
msgtype,required_node_feature_missing,PERM|NODE|3 |
||||
invalid_onion_version,BADONION|PERM|4 |
msgtype,invalid_onion_version,BADONION|PERM|4 |
||||
invalid_onion_version,0,sha256_of_onion,32 |
msgdata,invalid_onion_version,sha256_of_onion,sha256, |
||||
invalid_onion_hmac,BADONION|PERM|5 |
msgtype,invalid_onion_hmac,BADONION|PERM|5 |
||||
invalid_onion_hmac,0,sha256_of_onion,32 |
msgdata,invalid_onion_hmac,sha256_of_onion,sha256, |
||||
invalid_onion_key,BADONION|PERM|6 |
msgtype,invalid_onion_key,BADONION|PERM|6 |
||||
invalid_onion_key,0,sha256_of_onion,32 |
msgdata,invalid_onion_key,sha256_of_onion,sha256, |
||||
temporary_channel_failure,UPDATE|7 |
msgtype,temporary_channel_failure,UPDATE|7 |
||||
temporary_channel_failure,0,len,2 |
msgdata,temporary_channel_failure,len,u16, |
||||
temporary_channel_failure,2,channel_update,len |
msgdata,temporary_channel_failure,channel_update,byte,len |
||||
permanent_channel_failure,PERM|8 |
msgtype,permanent_channel_failure,PERM|8 |
||||
required_channel_feature_missing,PERM|9 |
msgtype,required_channel_feature_missing,PERM|9 |
||||
unknown_next_peer,PERM|10 |
msgtype,unknown_next_peer,PERM|10 |
||||
amount_below_minimum,UPDATE|11 |
msgtype,amount_below_minimum,UPDATE|11 |
||||
amount_below_minimum,0,htlc_msat,8 |
msgdata,amount_below_minimum,htlc_msat,u64, |
||||
amount_below_minimum,8,len,2 |
msgdata,amount_below_minimum,len,u16, |
||||
amount_below_minimum,10,channel_update,len |
msgdata,amount_below_minimum,channel_update,byte,len |
||||
fee_insufficient,UPDATE|12 |
msgtype,fee_insufficient,UPDATE|12 |
||||
fee_insufficient,0,htlc_msat,8 |
msgdata,fee_insufficient,htlc_msat,u64, |
||||
fee_insufficient,8,len,2 |
msgdata,fee_insufficient,len,u16, |
||||
fee_insufficient,10,channel_update,len |
msgdata,fee_insufficient,channel_update,byte,len |
||||
incorrect_cltv_expiry,UPDATE|13 |
msgtype,incorrect_cltv_expiry,UPDATE|13 |
||||
incorrect_cltv_expiry,0,cltv_expiry,4 |
msgdata,incorrect_cltv_expiry,cltv_expiry,u32, |
||||
incorrect_cltv_expiry,4,len,2 |
msgdata,incorrect_cltv_expiry,len,u16, |
||||
incorrect_cltv_expiry,6,channel_update,len |
msgdata,incorrect_cltv_expiry,channel_update,byte,len |
||||
expiry_too_soon,UPDATE|14 |
msgtype,expiry_too_soon,UPDATE|14 |
||||
expiry_too_soon,0,len,2 |
msgdata,expiry_too_soon,len,u16, |
||||
expiry_too_soon,2,channel_update,len |
msgdata,expiry_too_soon,channel_update,byte,len |
||||
incorrect_or_unknown_payment_details,PERM|15 |
msgtype,incorrect_or_unknown_payment_details,PERM|15 |
||||
incorrect_or_unknown_payment_details,0,htlc_msat,8 |
msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64, |
||||
final_expiry_too_soon,17 |
msgtype,final_expiry_too_soon,17 |
||||
final_incorrect_cltv_expiry,18 |
msgtype,final_incorrect_cltv_expiry,18 |
||||
final_incorrect_cltv_expiry,0,cltv_expiry,4 |
msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32, |
||||
final_incorrect_htlc_amount,19 |
msgtype,final_incorrect_htlc_amount,19 |
||||
final_incorrect_htlc_amount,0,incoming_htlc_amt,8 |
msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64, |
||||
channel_disabled,UPDATE|20 |
msgtype,channel_disabled,UPDATE|20 |
||||
expiry_too_far,21 |
msgtype,expiry_too_far,21 |
||||
|
@ -1,174 +1,174 @@ |
|||||
init,16 |
msgtype,init,16 |
||||
init,0,gflen,2 |
msgdata,init,gflen,u16, |
||||
init,2,globalfeatures,gflen |
msgdata,init,globalfeatures,byte,gflen |
||||
init,2+gflen,lflen,2 |
msgdata,init,lflen,u16, |
||||
init,4+gflen,localfeatures,lflen |
msgdata,init,localfeatures,byte,lflen |
||||
error,17 |
msgtype,error,17 |
||||
error,0,channel_id,32 |
msgdata,error,channel_id,channel_id, |
||||
error,32,len,2 |
msgdata,error,len,u16, |
||||
error,34,data,len |
msgdata,error,data,byte,len |
||||
ping,18 |
msgtype,ping,18 |
||||
ping,0,num_pong_bytes,2 |
msgdata,ping,num_pong_bytes,u16, |
||||
ping,2,byteslen,2 |
msgdata,ping,byteslen,u16, |
||||
ping,4,ignored,byteslen |
msgdata,ping,ignored,byte,byteslen |
||||
pong,19 |
msgtype,pong,19 |
||||
pong,0,byteslen,2 |
msgdata,pong,byteslen,u16, |
||||
pong,2,ignored,byteslen |
msgdata,pong,ignored,byte,byteslen |
||||
open_channel,32 |
msgtype,open_channel,32 |
||||
open_channel,0,chain_hash,32 |
msgdata,open_channel,chain_hash,chain_hash, |
||||
open_channel,32,temporary_channel_id,32 |
msgdata,open_channel,temporary_channel_id,byte,32 |
||||
open_channel,64,funding_satoshis,8 |
msgdata,open_channel,funding_satoshis,u64, |
||||
open_channel,72,push_msat,8 |
msgdata,open_channel,push_msat,u64, |
||||
open_channel,80,dust_limit_satoshis,8 |
msgdata,open_channel,dust_limit_satoshis,u64, |
||||
open_channel,88,max_htlc_value_in_flight_msat,8 |
msgdata,open_channel,max_htlc_value_in_flight_msat,u64, |
||||
open_channel,96,channel_reserve_satoshis,8 |
msgdata,open_channel,channel_reserve_satoshis,u64, |
||||
open_channel,104,htlc_minimum_msat,8 |
msgdata,open_channel,htlc_minimum_msat,u64, |
||||
open_channel,112,feerate_per_kw,4 |
msgdata,open_channel,feerate_per_kw,u32, |
||||
open_channel,116,to_self_delay,2 |
msgdata,open_channel,to_self_delay,u16, |
||||
open_channel,118,max_accepted_htlcs,2 |
msgdata,open_channel,max_accepted_htlcs,u16, |
||||
open_channel,120,funding_pubkey,33 |
msgdata,open_channel,funding_pubkey,pubkey, |
||||
open_channel,153,revocation_basepoint,33 |
msgdata,open_channel,revocation_basepoint,point, |
||||
open_channel,186,payment_basepoint,33 |
msgdata,open_channel,payment_basepoint,point, |
||||
open_channel,219,delayed_payment_basepoint,33 |
msgdata,open_channel,delayed_payment_basepoint,point, |
||||
open_channel,252,htlc_basepoint,33 |
msgdata,open_channel,htlc_basepoint,point, |
||||
open_channel,285,first_per_commitment_point,33 |
msgdata,open_channel,first_per_commitment_point,point, |
||||
open_channel,318,channel_flags,1 |
msgdata,open_channel,channel_flags,byte, |
||||
open_channel,319,shutdown_len,2,option_upfront_shutdown_script |
msgdata,open_channel,shutdown_len,u16,,option_upfront_shutdown_script |
||||
open_channel,321,shutdown_scriptpubkey,shutdown_len,option_upfront_shutdown_script |
msgdata,open_channel,shutdown_scriptpubkey,byte,shutdown_len,option_upfront_shutdown_script |
||||
accept_channel,33 |
msgtype,accept_channel,33 |
||||
accept_channel,0,temporary_channel_id,32 |
msgdata,accept_channel,temporary_channel_id,byte,32 |
||||
accept_channel,32,dust_limit_satoshis,8 |
msgdata,accept_channel,dust_limit_satoshis,u64, |
||||
accept_channel,40,max_htlc_value_in_flight_msat,8 |
msgdata,accept_channel,max_htlc_value_in_flight_msat,u64, |
||||
accept_channel,48,channel_reserve_satoshis,8 |
msgdata,accept_channel,channel_reserve_satoshis,u64, |
||||
accept_channel,56,htlc_minimum_msat,8 |
msgdata,accept_channel,htlc_minimum_msat,u64, |
||||
accept_channel,64,minimum_depth,4 |
msgdata,accept_channel,minimum_depth,u32, |
||||
accept_channel,68,to_self_delay,2 |
msgdata,accept_channel,to_self_delay,u16, |
||||
accept_channel,70,max_accepted_htlcs,2 |
msgdata,accept_channel,max_accepted_htlcs,u16, |
||||
accept_channel,72,funding_pubkey,33 |
msgdata,accept_channel,funding_pubkey,pubkey, |
||||
accept_channel,105,revocation_basepoint,33 |
msgdata,accept_channel,revocation_basepoint,point, |
||||
accept_channel,138,payment_basepoint,33 |
msgdata,accept_channel,payment_basepoint,point, |
||||
accept_channel,171,delayed_payment_basepoint,33 |
msgdata,accept_channel,delayed_payment_basepoint,point, |
||||
accept_channel,204,htlc_basepoint,33 |
msgdata,accept_channel,htlc_basepoint,point, |
||||
accept_channel,237,first_per_commitment_point,33 |
msgdata,accept_channel,first_per_commitment_point,point, |
||||
accept_channel,270,shutdown_len,2,option_upfront_shutdown_script |
msgdata,accept_channel,shutdown_len,u16,,option_upfront_shutdown_script |
||||
accept_channel,272,shutdown_scriptpubkey,shutdown_len,option_upfront_shutdown_script |
msgdata,accept_channel,shutdown_scriptpubkey,byte,shutdown_len,option_upfront_shutdown_script |
||||
funding_created,34 |
msgtype,funding_created,34 |
||||
funding_created,0,temporary_channel_id,32 |
msgdata,funding_created,temporary_channel_id,byte,32 |
||||
funding_created,32,funding_txid,32 |
msgdata,funding_created,funding_txid,sha256, |
||||
funding_created,64,funding_output_index,2 |
msgdata,funding_created,funding_output_index,u16, |
||||
funding_created,66,signature,64 |
msgdata,funding_created,signature,signature, |
||||
funding_signed,35 |
msgtype,funding_signed,35 |
||||
funding_signed,0,channel_id,32 |
msgdata,funding_signed,channel_id,channel_id, |
||||
funding_signed,32,signature,64 |
msgdata,funding_signed,signature,signature, |
||||
funding_locked,36 |
msgtype,funding_locked,36 |
||||
funding_locked,0,channel_id,32 |
msgdata,funding_locked,channel_id,channel_id, |
||||
funding_locked,32,next_per_commitment_point,33 |
msgdata,funding_locked,next_per_commitment_point,point, |
||||
shutdown,38 |
msgtype,shutdown,38 |
||||
shutdown,0,channel_id,32 |
msgdata,shutdown,channel_id,channel_id, |
||||
shutdown,32,len,2 |
msgdata,shutdown,len,u16, |
||||
shutdown,34,scriptpubkey,len |
msgdata,shutdown,scriptpubkey,byte,len |
||||
closing_signed,39 |
msgtype,closing_signed,39 |
||||
closing_signed,0,channel_id,32 |
msgdata,closing_signed,channel_id,channel_id, |
||||
closing_signed,32,fee_satoshis,8 |
msgdata,closing_signed,fee_satoshis,u64, |
||||
closing_signed,40,signature,64 |
msgdata,closing_signed,signature,signature, |
||||
update_add_htlc,128 |
msgtype,update_add_htlc,128 |
||||
update_add_htlc,0,channel_id,32 |
msgdata,update_add_htlc,channel_id,channel_id, |
||||
update_add_htlc,32,id,8 |
msgdata,update_add_htlc,id,u64, |
||||
update_add_htlc,40,amount_msat,8 |
msgdata,update_add_htlc,amount_msat,u64, |
||||
update_add_htlc,48,payment_hash,32 |
msgdata,update_add_htlc,payment_hash,sha256, |
||||
update_add_htlc,80,cltv_expiry,4 |
msgdata,update_add_htlc,cltv_expiry,u32, |
||||
update_add_htlc,84,onion_routing_packet,1366 |
msgdata,update_add_htlc,onion_routing_packet,byte,1366 |
||||
update_fulfill_htlc,130 |
msgtype,update_fulfill_htlc,130 |
||||
update_fulfill_htlc,0,channel_id,32 |
msgdata,update_fulfill_htlc,channel_id,channel_id, |
||||
update_fulfill_htlc,32,id,8 |
msgdata,update_fulfill_htlc,id,u64, |
||||
update_fulfill_htlc,40,payment_preimage,32 |
msgdata,update_fulfill_htlc,payment_preimage,preimage, |
||||
update_fail_htlc,131 |
msgtype,update_fail_htlc,131 |
||||
update_fail_htlc,0,channel_id,32 |
msgdata,update_fail_htlc,channel_id,channel_id, |
||||
update_fail_htlc,32,id,8 |
msgdata,update_fail_htlc,id,u64, |
||||
update_fail_htlc,40,len,2 |
msgdata,update_fail_htlc,len,u16, |
||||
update_fail_htlc,42,reason,len |
msgdata,update_fail_htlc,reason,byte,len |
||||
update_fail_malformed_htlc,135 |
msgtype,update_fail_malformed_htlc,135 |
||||
update_fail_malformed_htlc,0,channel_id,32 |
msgdata,update_fail_malformed_htlc,channel_id,channel_id, |
||||
update_fail_malformed_htlc,32,id,8 |
msgdata,update_fail_malformed_htlc,id,u64, |
||||
update_fail_malformed_htlc,40,sha256_of_onion,32 |
msgdata,update_fail_malformed_htlc,sha256_of_onion,sha256, |
||||
update_fail_malformed_htlc,72,failure_code,2 |
msgdata,update_fail_malformed_htlc,failure_code,u16, |
||||
commitment_signed,132 |
msgtype,commitment_signed,132 |
||||
commitment_signed,0,channel_id,32 |
msgdata,commitment_signed,channel_id,channel_id, |
||||
commitment_signed,32,signature,64 |
msgdata,commitment_signed,signature,signature, |
||||
commitment_signed,96,num_htlcs,2 |
msgdata,commitment_signed,num_htlcs,u16, |
||||
commitment_signed,98,htlc_signature,num_htlcs*64 |
msgdata,commitment_signed,htlc_signature,signature,num_htlcs |
||||
revoke_and_ack,133 |
msgtype,revoke_and_ack,133 |
||||
revoke_and_ack,0,channel_id,32 |
msgdata,revoke_and_ack,channel_id,channel_id, |
||||
revoke_and_ack,32,per_commitment_secret,32 |
msgdata,revoke_and_ack,per_commitment_secret,secret, |
||||
revoke_and_ack,64,next_per_commitment_point,33 |
msgdata,revoke_and_ack,next_per_commitment_point,point, |
||||
update_fee,134 |
msgtype,update_fee,134 |
||||
update_fee,0,channel_id,32 |
msgdata,update_fee,channel_id,channel_id, |
||||
update_fee,32,feerate_per_kw,4 |
msgdata,update_fee,feerate_per_kw,u32, |
||||
channel_reestablish,136 |
msgtype,channel_reestablish,136 |
||||
channel_reestablish,0,channel_id,32 |
msgdata,channel_reestablish,channel_id,channel_id, |
||||
channel_reestablish,32,next_local_commitment_number,8 |
msgdata,channel_reestablish,next_local_commitment_number,u64, |
||||
channel_reestablish,40,next_remote_revocation_number,8 |
msgdata,channel_reestablish,next_remote_revocation_number,u64, |
||||
channel_reestablish,48,your_last_per_commitment_secret,32,option_data_loss_protect |
msgdata,channel_reestablish,your_last_per_commitment_secret,secret,,option_data_loss_protect |
||||
channel_reestablish,80,my_current_per_commitment_point,33,option_data_loss_protect |
msgdata,channel_reestablish,my_current_per_commitment_point,point,,option_data_loss_protect |
||||
announcement_signatures,259 |
msgtype,announcement_signatures,259 |
||||
announcement_signatures,0,channel_id,32 |
msgdata,announcement_signatures,channel_id,channel_id, |
||||
announcement_signatures,32,short_channel_id,8 |
msgdata,announcement_signatures,short_channel_id,short_channel_id, |
||||
announcement_signatures,40,node_signature,64 |
msgdata,announcement_signatures,node_signature,signature, |
||||
announcement_signatures,104,bitcoin_signature,64 |
msgdata,announcement_signatures,bitcoin_signature,signature, |
||||
channel_announcement,256 |
msgtype,channel_announcement,256 |
||||
channel_announcement,0,node_signature_1,64 |
msgdata,channel_announcement,node_signature_1,signature, |
||||
channel_announcement,64,node_signature_2,64 |
msgdata,channel_announcement,node_signature_2,signature, |
||||
channel_announcement,128,bitcoin_signature_1,64 |
msgdata,channel_announcement,bitcoin_signature_1,signature, |
||||
channel_announcement,192,bitcoin_signature_2,64 |
msgdata,channel_announcement,bitcoin_signature_2,signature, |
||||
channel_announcement,256,len,2 |
msgdata,channel_announcement,len,u16, |
||||
channel_announcement,258,features,len |
msgdata,channel_announcement,features,byte,len |
||||
channel_announcement,258+len,chain_hash,32 |
msgdata,channel_announcement,chain_hash,chain_hash, |
||||
channel_announcement,290+len,short_channel_id,8 |
msgdata,channel_announcement,short_channel_id,short_channel_id, |
||||
channel_announcement,298+len,node_id_1,33 |
msgdata,channel_announcement,node_id_1,pubkey, |
||||
channel_announcement,331+len,node_id_2,33 |
msgdata,channel_announcement,node_id_2,pubkey, |
||||
channel_announcement,364+len,bitcoin_key_1,33 |
msgdata,channel_announcement,bitcoin_key_1,pubkey, |
||||
channel_announcement,397+len,bitcoin_key_2,33 |
msgdata,channel_announcement,bitcoin_key_2,pubkey, |
||||
node_announcement,257 |
msgtype,node_announcement,257 |
||||
node_announcement,0,signature,64 |
msgdata,node_announcement,signature,signature, |
||||
node_announcement,64,flen,2 |
msgdata,node_announcement,flen,u16, |
||||
node_announcement,66,features,flen |
msgdata,node_announcement,features,byte,flen |
||||
node_announcement,66+flen,timestamp,4 |
msgdata,node_announcement,timestamp,u32, |
||||
node_announcement,70+flen,node_id,33 |
msgdata,node_announcement,node_id,pubkey, |
||||
node_announcement,103+flen,rgb_color,3 |
msgdata,node_announcement,rgb_color,byte,3 |
||||
node_announcement,106+flen,alias,32 |
msgdata,node_announcement,alias,byte,32 |
||||
node_announcement,138+flen,addrlen,2 |
msgdata,node_announcement,addrlen,u16, |
||||
node_announcement,140+flen,addresses,addrlen |
msgdata,node_announcement,addresses,byte,addrlen |
||||
channel_update,258 |
msgtype,channel_update,258 |
||||
channel_update,0,signature,64 |
msgdata,channel_update,signature,signature, |
||||
channel_update,64,chain_hash,32 |
msgdata,channel_update,chain_hash,chain_hash, |
||||
channel_update,96,short_channel_id,8 |
msgdata,channel_update,short_channel_id,short_channel_id, |
||||
channel_update,104,timestamp,4 |
msgdata,channel_update,timestamp,u32, |
||||
channel_update,108,message_flags,1 |
msgdata,channel_update,message_flags,byte, |
||||
channel_update,109,channel_flags,1 |
msgdata,channel_update,channel_flags,byte, |
||||
channel_update,110,cltv_expiry_delta,2 |
msgdata,channel_update,cltv_expiry_delta,u16, |
||||
channel_update,112,htlc_minimum_msat,8 |
msgdata,channel_update,htlc_minimum_msat,u64, |
||||
channel_update,120,fee_base_msat,4 |
msgdata,channel_update,fee_base_msat,u32, |
||||
channel_update,124,fee_proportional_millionths,4 |
msgdata,channel_update,fee_proportional_millionths,u32, |
||||
channel_update,128,htlc_maximum_msat,8,option_channel_htlc_max |
msgdata,channel_update,htlc_maximum_msat,u64,,option_channel_htlc_max |
||||
query_short_channel_ids,261 |
msgtype,query_short_channel_ids,261,gossip_queries |
||||
query_short_channel_ids,0,chain_hash,32 |
msgdata,query_short_channel_ids,chain_hash,chain_hash, |
||||
query_short_channel_ids,32,len,2 |
msgdata,query_short_channel_ids,len,u16, |
||||
query_short_channel_ids,34,encoded_short_ids,len |
msgdata,query_short_channel_ids,encoded_short_ids,byte,len |
||||
reply_short_channel_ids_end,262 |
msgtype,reply_short_channel_ids_end,262,gossip_queries |
||||
reply_short_channel_ids_end,0,chain_hash,32 |
msgdata,reply_short_channel_ids_end,chain_hash,chain_hash, |
||||
reply_short_channel_ids_end,32,complete,1 |
msgdata,reply_short_channel_ids_end,complete,byte, |
||||
query_channel_range,263 |
msgtype,query_channel_range,263,gossip_queries |
||||
query_channel_range,0,chain_hash,32 |
msgdata,query_channel_range,chain_hash,chain_hash, |
||||
query_channel_range,32,first_blocknum,4 |
msgdata,query_channel_range,first_blocknum,u32, |
||||
query_channel_range,36,number_of_blocks,4 |
msgdata,query_channel_range,number_of_blocks,u32, |
||||
reply_channel_range,264 |
msgtype,reply_channel_range,264,gossip_queries |
||||
reply_channel_range,0,chain_hash,32 |
msgdata,reply_channel_range,chain_hash,chain_hash, |
||||
reply_channel_range,32,first_blocknum,4 |
msgdata,reply_channel_range,first_blocknum,u32, |
||||
reply_channel_range,36,number_of_blocks,4 |
msgdata,reply_channel_range,number_of_blocks,u32, |
||||
reply_channel_range,40,complete,1 |
msgdata,reply_channel_range,complete,byte, |
||||
reply_channel_range,41,len,2 |
msgdata,reply_channel_range,len,u16, |
||||
reply_channel_range,43,encoded_short_ids,len |
msgdata,reply_channel_range,encoded_short_ids,byte,len |
||||
gossip_timestamp_filter,265 |
msgtype,gossip_timestamp_filter,265,gossip_queries |
||||
gossip_timestamp_filter,0,chain_hash,32 |
msgdata,gossip_timestamp_filter,chain_hash,chain_hash, |
||||
gossip_timestamp_filter,32,first_timestamp,4 |
msgdata,gossip_timestamp_filter,first_timestamp,u32, |
||||
gossip_timestamp_filter,36,timestamp_range,4 |
msgdata,gossip_timestamp_filter,timestamp_range,u32, |
||||
|
Loading…
Reference in new issue