Skip to content

Commit edbff4c

Browse files
f - Update short_to_chan_info docs
1 parent 595ee0f commit edbff4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,12 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
748748
/// Outbound SCID aliases are added here once the channel is available for normal use, with
749749
/// SCIDs being added once the funding transaction is confirmed at the channel's required
750750
/// confirmation depth.
751+
///
752+
/// Note that while this holds `counterparty_node_id`s and `channel_id`s, no consistency
753+
/// guarantees are made about the existence of a peer with the `counterparty_node_id` nor a
754+
/// channel with the `channel_id` in our other maps.
755+
///
756+
/// Locked *after* `channel_state`.
751757
#[cfg(any(test, feature = "_test_utils"))]
752758
pub(super) short_to_chan_info: FairRwLock<HashMap<u64, (PublicKey, [u8; 32])>>,
753759
#[cfg(not(any(test, feature = "_test_utils")))]

0 commit comments

Comments
 (0)