From 57ac2ec1b63ceab6d763eedcb65ec5983e509195 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 11 May 2020 21:08:11 -0400 Subject: [PATCH] Add missing comment on why last_update_message is None --- lightning/src/routing/network_graph.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightning/src/routing/network_graph.rs b/lightning/src/routing/network_graph.rs index dd6d7d7ed..b454216b4 100644 --- a/lightning/src/routing/network_graph.rs +++ b/lightning/src/routing/network_graph.rs @@ -217,6 +217,9 @@ pub struct DirectionalChannelInfo { /// Fees charged when the channel is used for routing pub fees: RoutingFees, /// Most recent update for the channel received from the network + /// Mostly redundant with the data we store in fields explicitly. + /// Everything else is useful only for sending out for initial routing sync. + /// Not stored if contains excess data to prevent DoS. pub last_update_message: Option, } -- 2.39.5