Skip to content

Commit ab94012

Browse files
committed
f mention pruning before writing in NetworkGraph docs
1 parent 5b98a77 commit ab94012

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ impl Readable for NodeId {
120120
}
121121

122122
/// Represents the network as nodes and channels between them
123+
///
124+
/// When built with the `std` feature, [`NetworkGraph::remove_stale_channels`] is called
125+
/// immediately prior to serialization to avoid bloat.
123126
pub struct NetworkGraph {
124127
genesis_hash: BlockHash,
125128
// Lock order: channels -> nodes

0 commit comments

Comments
 (0)