From: Viktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com> Date: Sat, 10 Dec 2022 21:20:05 +0000 (+0100) Subject: Update `id_to_peer` docs with consistency guarantees info X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=cd738f64de5410b6ae4e47f22412a11926fe6bf3;p=rust-lightning Update `id_to_peer` docs with consistency guarantees info --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 16bf148e..5ef0235e 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -699,6 +699,9 @@ where /// the corresponding channel for the event, as we only have access to the `channel_id` during /// the handling of the events. /// + /// Note that no consistency guarantees are made about the existence of a peer with the + /// `counterparty_node_id` in our other maps. + /// /// TODO: /// The `counterparty_node_id` isn't passed with `MonitorEvent`s currently. To pass it, we need /// to make `counterparty_node_id`'s a required field in `ChannelMonitor`s, which unfortunately