File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2548,6 +2548,9 @@ pub struct ChannelManager<
2548
2548
/// Note that no consistency guarantees are made about the existence of a channel with the
2549
2549
/// `short_channel_id` here, nor the `short_channel_id` in the `PendingHTLCInfo`!
2550
2550
///
2551
+ /// This will also hold any [`FailHTLC`]s arising from handling [`Self::pending_intercepted_htlcs`] or
2552
+ /// [`Self::receive_htlcs`].
2553
+ ///
2551
2554
/// See `ChannelManager` struct-level documentation for lock order requirements.
2552
2555
#[cfg(test)]
2553
2556
pub(super) forward_htlcs: Mutex<HashMap<u64, Vec<HTLCForwardInfo>>>,
@@ -2556,10 +2559,16 @@ pub struct ChannelManager<
2556
2559
/// Storage for HTLCs that have been intercepted and bubbled up to the user. We hold them here
2557
2560
/// until the user tells us what we should do with them.
2558
2561
///
2562
+ /// Note that any failures that may arise from handling these will be pushed to
2563
+ /// [`Self::forward_htlcs`] with the previous hop's SCID.
2564
+ ///
2559
2565
/// See `ChannelManager` struct-level documentation for lock order requirements.
2560
2566
pending_intercepted_htlcs: Mutex<HashMap<InterceptId, PendingAddHTLCInfo>>,
2561
2567
/// Storage for HTLCs that are meant for us.
2562
2568
///
2569
+ /// Note that any failures that may arise from handling these will be pushed to
2570
+ /// [`Self::forward_htlcs`] with the previous hop's SCID.
2571
+ ///
2563
2572
/// See `ChannelManager` struct-level documentation for lock order requirements.
2564
2573
#[cfg(test)]
2565
2574
pub(super) receive_htlcs: Mutex<Vec<HTLCForwardInfo>>,
You can’t perform that action at this time.
0 commit comments