mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
83aea6b2bb
Instead of a boutique message, use a "real" channel_announcement for private channels (with fake sigs and pubkeys). This makes it far easier for gossmap to handle local channels. Backwards compatible update, since we update old stores. We also fix devtools/dump-gossipstore to know about the tombstone markers. Since we increment our channel_announce count for local channels now, the stats in the tests changed too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
610 B
C
18 lines
610 B
C
#ifndef LIGHTNING_COMMON_PRIVATE_CHANNEL_ANNOUNCEMENT_H
|
|
#define LIGHTNING_COMMON_PRIVATE_CHANNEL_ANNOUNCEMENT_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
|
|
struct short_channel_id;
|
|
struct node_id;
|
|
|
|
/* Helper to create a fake channel announcement for local channels. */
|
|
const u8 *private_channel_announcement(const tal_t *ctx,
|
|
const struct short_channel_id *scid,
|
|
const struct node_id *local_node_id,
|
|
const struct node_id *remote_node_id,
|
|
const u8 *features);
|
|
|
|
#endif /* LIGHTNING_COMMON_PRIVATE_CHANNEL_ANNOUNCEMENT_H */
|