2019-10-08 03:15:24 +02:00
|
|
|
#ifndef LIGHTNING_GOSSIPD_SEEKER_H
|
|
|
|
#define LIGHTNING_GOSSIPD_SEEKER_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct daemon;
|
|
|
|
struct peer;
|
|
|
|
struct short_channel_id;
|
|
|
|
|
2019-10-08 03:30:24 +02:00
|
|
|
struct seeker *new_seeker(struct daemon *daemon);
|
2019-10-08 03:15:24 +02:00
|
|
|
|
|
|
|
void query_unknown_channel(struct daemon *daemon,
|
|
|
|
struct peer *peer,
|
|
|
|
const struct short_channel_id *id);
|
|
|
|
|
2019-10-08 03:32:24 +02:00
|
|
|
void query_unknown_node(struct seeker *seeker, struct peer *peer);
|
|
|
|
|
2019-10-08 03:16:24 +02:00
|
|
|
void seeker_setup_peer_gossip(struct seeker *seeker, struct peer *peer);
|
|
|
|
|
2019-10-08 03:15:24 +02:00
|
|
|
bool remove_unknown_scid(struct seeker *seeker,
|
2019-10-08 03:18:24 +02:00
|
|
|
const struct short_channel_id *scid,
|
|
|
|
bool found);
|
2019-10-08 03:15:24 +02:00
|
|
|
bool add_unknown_scid(struct seeker *seeker,
|
2019-10-08 03:31:24 +02:00
|
|
|
const struct short_channel_id *scid,
|
|
|
|
struct peer *peer);
|
2019-10-08 03:34:24 +02:00
|
|
|
|
2023-07-06 09:36:49 +02:00
|
|
|
void seeker_peer_gone(struct seeker *seeker,
|
|
|
|
const struct peer *peer);
|
2019-10-08 03:15:24 +02:00
|
|
|
#endif /* LIGHTNING_GOSSIPD_SEEKER_H */
|