mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +01:00
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>
12 lines
431 B
CSV
12 lines
431 B
CSV
# gossip_store messages: messages persisted in the gossip_store
|
|
# We store raw messages here, so these numbers must not overlap with
|
|
# 256/257/258 or gossipd_local_add_channel (3503)
|
|
|
|
# This always follows the channel_announce.
|
|
gossip_store_channel_amount,4101
|
|
gossip_store_channel_amount,,satoshis,struct amount_sat
|
|
|
|
gossip_store_private_update,4102
|
|
gossip_store_private_update,,len,u16
|
|
gossip_store_private_update,,update,len*u8
|