core-lightning/devtools/clean_topo.h
Rusty Russell 5714a8c139 devtools/topology: new tool to explore lightning topology.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-08-28 10:56:50 +09:30

14 lines
431 B
C

#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 */