core-lightning/gossipd/gossip_store.csv
Rusty Russell df00f20e4a gossipd: erase old entries from the store, don't just append.
We use the high bit of the length field: this way we can still check
that the checksums are valid on deleted fields.

Once this is done, serially reading the gossip_store file will result
in a complete, ordered, minimal gossip broadcast.  Also, the horrible
corner case where we might try to delete things from the store during
load time is completely gone: we only load non-deleted things.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-04 01:29:39 +00:00

431 B

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 or gossipd_local_add_channel (3503)
4# This always follows the channel_announce.
5gossip_store_channel_amount,4101
6gossip_store_channel_amount,,satoshis,struct amount_sat
7gossip_store_private_update,4102
8gossip_store_private_update,,len,u16
9gossip_store_private_update,,update,len*u8