mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
ca08f27d54
Now we only send and receive gossip messages on this fd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
31 lines
967 B
C
31 lines
967 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 channel;
|
|
struct lightningd;
|
|
|
|
void gossip_init(struct lightningd *ld, int connectd_fd);
|
|
|
|
void gossipd_notify_spend(struct lightningd *ld,
|
|
const struct short_channel_id *scid);
|
|
|
|
void gossip_notify_new_block(struct lightningd *ld, u32 blockheight);
|
|
|
|
/* channeld tells us stuff, we tell gossipd. */
|
|
void tell_gossipd_local_channel_update(struct lightningd *ld,
|
|
struct channel *channel,
|
|
const u8 *msg);
|
|
void tell_gossipd_local_channel_announce(struct lightningd *ld,
|
|
struct channel *channel,
|
|
const u8 *msg);
|
|
void tell_gossipd_local_private_channel(struct lightningd *ld,
|
|
struct channel *channel,
|
|
struct amount_sat capacity,
|
|
const u8 *features);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H */
|