You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
431 B

#ifndef LIGHTNING_DEVTOOLS_CLEAN_TOPO_H
#define LIGHTNING_DEVTOOLS_CLEAN_TOPO_H
#include "config.h"
struct gossmap;
/* Cleans topology:
* 1. Removes channels not enabled in both dirs.
* 2. (if remove_singles) remove nodes with only one connection.
* 3. Remove isolated nodes (we assume first node is well-connected!).
*/
void clean_topo(struct gossmap *map, bool remove_singles);
#endif /* LIGHTNING_DEVTOOLS_CLEAN_TOPO_H */