2019-10-08 11:45:24 +10:30
|
|
|
#ifndef LIGHTNING_GOSSIPD_SEEKER_H
|
|
|
|
#define LIGHTNING_GOSSIPD_SEEKER_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct daemon;
|
2024-01-31 14:58:33 +10:30
|
|
|
struct node_id;
|
2019-10-08 11:45:24 +10:30
|
|
|
struct short_channel_id;
|
|
|
|
|
2019-10-08 12:00:24 +10:30
|
|
|
struct seeker *new_seeker(struct daemon *daemon);
|
2019-10-08 11:45:24 +10:30
|
|
|
|
2024-01-31 14:58:33 +10:30
|
|
|
/* source_peer can be NULL! */
|
2019-10-08 11:45:24 +10:30
|
|
|
void query_unknown_channel(struct daemon *daemon,
|
2024-01-31 14:58:33 +10:30
|
|
|
const struct node_id *source_peer,
|
|
|
|
const struct short_channel_id unknown_scid);
|
2019-10-08 11:45:24 +10:30
|
|
|
|
2024-01-31 14:58:33 +10:30
|
|
|
/* source_peer can be NULL! */
|
|
|
|
void query_unknown_node(struct daemon *daemon,
|
|
|
|
const struct node_id *source_peer,
|
|
|
|
const struct node_id *unknown_node);
|
2019-10-08 12:02:24 +10:30
|
|
|
|
2019-10-08 11:46:24 +10:30
|
|
|
void seeker_setup_peer_gossip(struct seeker *seeker, struct peer *peer);
|
|
|
|
|
2019-10-08 11:45:24 +10:30
|
|
|
bool remove_unknown_scid(struct seeker *seeker,
|
2019-10-08 11:48:24 +10:30
|
|
|
const struct short_channel_id *scid,
|
|
|
|
bool found);
|
2019-10-08 12:04:24 +10:30
|
|
|
|
2023-07-06 17:06:49 +09:30
|
|
|
void seeker_peer_gone(struct seeker *seeker,
|
|
|
|
const struct peer *peer);
|
2024-01-31 13:46:20 +10:30
|
|
|
|
|
|
|
void dev_seeker_memleak(struct htable *memtable, struct seeker *seeker);
|
2019-10-08 11:45:24 +10:30
|
|
|
#endif /* LIGHTNING_GOSSIPD_SEEKER_H */
|