mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
5714a8c139
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 lines
431 B
C
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 */
|