mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
6f9c5f2936
This will let gossipd be more intelligent about gossiping before we're synced, and also it might know how far behind we are. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
508 B
C
18 lines
508 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);
|
|
|
|
void gossip_notify_new_block(struct lightningd *ld, u32 blockheight);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H */
|