mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
gossmap: remembers when a channel is private.
Steals one bit from the scid_off, and turns that into a relative offset. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -19,8 +19,9 @@ struct gossmap_node {
|
||||
|
||||
struct gossmap_chan {
|
||||
u32 cann_off;
|
||||
/* Technically redundant, but we have a hole anyway. */
|
||||
u32 scid_off;
|
||||
u32 private: 1;
|
||||
/* Technically redundant, but we have a hole anyway: from cann_off */
|
||||
u32 plus_scid_off: 31;
|
||||
/* two nodes we connect (lesser idx first) */
|
||||
struct half_chan {
|
||||
/* Top bit indicates it's enabled */
|
||||
|
||||
Reference in New Issue
Block a user