Skip to content

Commit 57ac2ec

Browse files
committed
Add missing comment on why last_update_message is None
1 parent 0e3bf19 commit 57ac2ec

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
@@ -217,6 +217,9 @@ pub struct DirectionalChannelInfo {
217217
/// Fees charged when the channel is used for routing
218218
pub fees: RoutingFees,
219219
/// Most recent update for the channel received from the network
220+
/// Mostly redundant with the data we store in fields explicitly.
221+
/// Everything else is useful only for sending out for initial routing sync.
222+
/// Not stored if contains excess data to prevent DoS.
220223
pub last_update_message: Option<msgs::ChannelUpdate>,
221224
}
222225

0 commit comments

Comments
 (0)