mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-09 23:27:17 +01:00
78ffea61e1
This msg is stored in the gossip_store, so it means a version bump. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1.8 KiB
1.8 KiB
1 | # These must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs! |
---|---|
2 | # Channel daemon can ask for updates for a specific channel, for sending |
3 | # errors. |
4 | msgtype,gossipd_get_update,3501 |
5 | msgdata,gossipd_get_update,short_channel_id,short_channel_id, |
6 | # If channel isn't known, update will be empty. |
7 | msgtype,gossipd_get_update_reply,3601 |
8 | msgdata,gossipd_get_update_reply,len,u16, |
9 | msgdata,gossipd_get_update_reply,update,u8,len |
10 | # Both sides have seen the funding tx being locked, but we have not |
11 | # yet reached the announcement depth. So we add the channel locally so |
12 | # we (and peer) can update it already. |
13 | msgtype,gossipd_local_add_channel,3503 |
14 | msgdata,gossipd_local_add_channel,short_channel_id,short_channel_id, |
15 | msgdata,gossipd_local_add_channel,remote_node_id,node_id, |
16 | msgdata,gossipd_local_add_channel,satoshis,amount_sat, |
17 | msgdata,gossipd_local_add_channel,flen,u16, |
18 | msgdata,gossipd_local_add_channel,features,u8,flen |
19 | # Send this channel_update. |
20 | msgtype,gossipd_local_channel_update,3504 |
21 | msgdata,gossipd_local_channel_update,short_channel_id,short_channel_id, |
22 | msgdata,gossipd_local_channel_update,disable,bool, |
23 | msgdata,gossipd_local_channel_update,cltv_expiry_delta,u16, |
24 | msgdata,gossipd_local_channel_update,htlc_minimum_msat,amount_msat, |
25 | msgdata,gossipd_local_channel_update,fee_base_msat,u32, |
26 | msgdata,gossipd_local_channel_update,fee_proportional_millionths,u32, |
27 | msgdata,gossipd_local_channel_update,htlc_maximum_msat,amount_msat, |
28 | # Update your gossip_store fd: + gossip_store_fd |
29 | msgtype,gossipd_new_store_fd,3505 |
30 | # How much shorter the new store is, so you can offset streaming. |
31 | msgdata,gossipd_new_store_fd,offset_shorter,u64, |
32 | # Send this channel_announcement |
33 | msgtype,gossipd_local_channel_announcement,3506 |
34 | msgdata,gossipd_local_channel_announcement,len,u16, |
35 | msgdata,gossipd_local_channel_announcement,cannount,u8,len |