Skip to content

Commit fb2ed56

Browse files
committed
f stop pruning graph on write
1 parent 28f23fa commit fb2ed56

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,6 @@ const MIN_SERIALIZATION_VERSION: u8 = 1;
740740

741741
impl Writeable for NetworkGraph {
742742
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
743-
#[cfg(feature = "std")]
744-
{
745-
self.remove_stale_channels();
746-
}
747-
748743
write_ver_prefix!(writer, SERIALIZATION_VERSION, MIN_SERIALIZATION_VERSION);
749744

750745
self.genesis_hash.write(writer)?;
@@ -1072,8 +1067,6 @@ impl NetworkGraph {
10721067
/// updates every two weeks, the non-normative section of BOLT 7 currently suggests that
10731068
/// pruning occurs for updates which are at least two weeks old, which we implement here.
10741069
///
1075-
/// This method is automatically called immediately before writing the network graph via
1076-
/// [`Writeable::write`].
10771070
///
10781071
/// This method is only available with the `std` feature. See
10791072
/// [`NetworkGraph::remove_stale_channels_with_time`] for `no-std` use.

0 commit comments

Comments
 (0)