mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
This adds a new "chan_dying" message to the gossip_store, but since we already changed the minor version in this PR, we don't bump it again. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: Protocol: We now delay forgetting funding-spent channels for 12 blocks (as per latest BOLTs, to support splicing in future).
1.1 KiB
1.1 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 |
| 7 | msgtype,gossip_store_channel_amount,4101 |
| 8 | msgdata,gossip_store_channel_amount,satoshis,amount_sat, |
| 9 | # Mimics a channel_announce, except signatures are all-zero |
| 10 | msgtype,gossip_store_private_channel,4104 |
| 11 | msgdata,gossip_store_private_channel,satoshis,amount_sat, |
| 12 | msgdata,gossip_store_private_channel,len,u16, |
| 13 | msgdata,gossip_store_private_channel,announcement,u8,len |
| 14 | msgtype,gossip_store_private_update,4102 |
| 15 | msgdata,gossip_store_private_update,len,u16, |
| 16 | msgdata,gossip_store_private_update,update,u8,len |
| 17 | msgtype,gossip_store_delete_chan,4103 |
| 18 | msgdata,gossip_store_delete_chan,scid,short_channel_id, |
| 19 | msgtype,gossip_store_ended,4105 |
| 20 | msgdata,gossip_store_ended,equivalent_offset,u64, |
| 21 | msgtype,gossip_store_chan_dying,4106 |
| 22 | msgdata,gossip_store_chan_dying,scid,short_channel_id, |
| 23 | msgdata,gossip_store_chan_dying,blockheight,u32, |