core-lightning/gossipd/gossipd_peerd_wire.csv
Rusty Russell 83aea6b2bb gossip_store: make private channels more similar to channel_announcement
Instead of a boutique message, use a "real" channel_announcement for
private channels (with fake sigs and pubkeys).  This makes it far
easier for gossmap to handle local channels.

Backwards compatible update, since we update old stores.

We also fix devtools/dump-gossipstore to know about the tombstone markers.

Since we increment our channel_announce count for local channels now,
the stats in the tests changed too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-10-21 08:58:34 +10:30

1.4 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# Channel daemon can ask for updates for a specific channel, for sending
5# errors.
6msgtype,gossipd_get_update,3501
7msgdata,gossipd_get_update,short_channel_id,short_channel_id,
8# If channel isn't known, update will be empty.
9msgtype,gossipd_get_update_reply,3601
10msgdata,gossipd_get_update_reply,len,u16,
11msgdata,gossipd_get_update_reply,update,u8,len
12# Send this channel_update.
13msgtype,gossipd_local_channel_update,3504
14msgdata,gossipd_local_channel_update,short_channel_id,short_channel_id,
15msgdata,gossipd_local_channel_update,disable,bool,
16msgdata,gossipd_local_channel_update,cltv_expiry_delta,u16,
17msgdata,gossipd_local_channel_update,htlc_minimum_msat,amount_msat,
18msgdata,gossipd_local_channel_update,fee_base_msat,u32,
19msgdata,gossipd_local_channel_update,fee_proportional_millionths,u32,
20msgdata,gossipd_local_channel_update,htlc_maximum_msat,amount_msat,
21# Update your gossip_store fd: + gossip_store_fd
22msgtype,gossipd_new_store_fd,3505
23# How much shorter the new store is, so you can offset streaming.
24msgdata,gossipd_new_store_fd,offset_shorter,u64,
25# Send this channel_announcement
26msgtype,gossipd_local_channel_announcement,3506
27msgdata,gossipd_local_channel_announcement,len,u16,
28msgdata,gossipd_local_channel_announcement,cannount,u8,len