mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
df00f20e4a
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>
431 B
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. |
5 | gossip_store_channel_amount,4101 |
6 | gossip_store_channel_amount,,satoshis,struct amount_sat |
7 | gossip_store_private_update,4102 |
8 | gossip_store_private_update,,len,u16 |
9 | gossip_store_private_update,,update,len*u8 |