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