mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
This patch guts gossipd of all peer-related functionality, and hands all the peer-related requests to channeld instead. gossipd now gets the final announcable addresses in its init msg, since it doesn't handle socket binding any more. lightningd now actually starts connectd, and activates it. The init messages for both gossipd and connectd still contain redundant fields which need cleaning up. There are shims to handle the fact that connectd's wire messages are still (mostly) gossipd messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
585 B
C
19 lines
585 B
C
#ifndef LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H
|
|
#include "config.h"
|
|
#include <bitcoin/short_channel_id.h>
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct lightningd;
|
|
|
|
void gossip_init(struct lightningd *ld, int connectd_fd);
|
|
|
|
void gossipd_notify_spend(struct lightningd *ld,
|
|
const struct short_channel_id *scid);
|
|
|
|
/* FIXME: Exposing this is a hack for connectd transition. */
|
|
struct subd;
|
|
unsigned gossip_msg(struct subd *gossip, const u8 *msg, const int *fds);
|
|
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H */
|