Skip to content

Commit

Permalink
f - fix docs in Add id_to_peer map
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorTigerstrom committed Jul 8, 2022
1 parent 9181eb2 commit 6a748ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,8 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
///
/// TODO:
/// The `counterparty_node_id` isn't passed with `MonitorEvent`s currently. To pass it, we need
/// to add the `counterparty_node_id` to `ChannelMonitor`s. However, adding it as a required
/// field in `ChannelMonitor`s would break backwards compatability.
/// to make `counterparty_node_id`'s a required field in `ChannelMonitor`s, which unfortunately
/// would break backwards compatability.
/// We should add `counterparty_node_id`s to `MonitorEvent`s, and eventually rely on it in the
/// future. That would make this map redundant, as only the `ChannelManager::per_peer_state` is
/// required to access the channel with the `counterparty_node_id`.
Expand Down

0 comments on commit 6a748ce

Please sign in to comment.