core-lightning/gossipd/gossip_store_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.2 KiB

1# gossip_store messages: messages persisted in the gossip_store
2# We store raw messages here, so these numbers must not overlap with
3# 256/257/258.
4#include <common/amount.h>
5#include <common/node_id.h>
6# This always follows the channel_announce / private_announce
7msgtype,gossip_store_channel_amount,4101
8msgdata,gossip_store_channel_amount,satoshis,amount_sat,
9# Mimics a channel_announce, except signatures are all-zero
10msgtype,gossip_store_private_channel,4104
11msgdata,gossip_store_private_channel,satoshis,amount_sat,
12msgdata,gossip_store_private_channel,len,u16,
13msgdata,gossip_store_private_channel,announcement,u8,len
14msgtype,gossip_store_private_update,4102
15msgdata,gossip_store_private_update,len,u16,
16msgdata,gossip_store_private_update,update,u8,len
17msgtype,gossip_store_delete_chan,4103
18msgdata,gossip_store_delete_chan,scid,short_channel_id,
19# FIXME: Here for COMPAT with v0.9.0 and before only.
20msgtype,gossipd_local_add_channel_obs,3503
21msgdata,gossipd_local_add_channel_obs,short_channel_id,short_channel_id,
22msgdata,gossipd_local_add_channel_obs,remote_node_id,node_id,
23msgdata,gossipd_local_add_channel_obs,satoshis,amount_sat,
24msgdata,gossipd_local_add_channel_obs,flen,u16,
25msgdata,gossipd_local_add_channel_obs,features,u8,flen