]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add missing comment on why last_update_message is None
authorMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 01:08:11 +0000 (21:08 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 18:02:40 +0000 (14:02 -0400)
lightning/src/routing/network_graph.rs

index dd6d7d7ed734aadbd7f89f93308aefd0223a9f79..b454216b48ca091ac04e0656aee4e47c604e3f44 100644 (file)
@@ -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<msgs::ChannelUpdate>,
 }