Skip to content

Commit 6a748ce

Browse files
f - fix docs in Add id_to_peer map
1 parent 9181eb2 commit 6a748ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
742742
///
743743
/// TODO:
744744
/// The `counterparty_node_id` isn't passed with `MonitorEvent`s currently. To pass it, we need
745-
/// to add the `counterparty_node_id` to `ChannelMonitor`s. However, adding it as a required
746-
/// field in `ChannelMonitor`s would break backwards compatability.
745+
/// to make `counterparty_node_id`'s a required field in `ChannelMonitor`s, which unfortunately
746+
/// would break backwards compatability.
747747
/// We should add `counterparty_node_id`s to `MonitorEvent`s, and eventually rely on it in the
748748
/// future. That would make this map redundant, as only the `ChannelManager::per_peer_state` is
749749
/// required to access the channel with the `counterparty_node_id`.

0 commit comments

Comments
 (0)