Skip to content

Commit f09ac19

Browse files
Make BlindedFailure enum pub.
Necessary to include it in the public PendingHTLCInfo struct in the next commit.
1 parent 8ad292e commit f09ac19

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,15 @@ pub(super) enum HTLCForwardInfo {
305305
},
306306
}
307307

308-
// Used for failing blinded HTLCs backwards correctly.
308+
/// Whether this blinded HTLC is being failed backwards by the introduction node or a blinded node,
309+
/// which determines the failure message that should be used.
309310
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
310-
enum BlindedFailure {
311+
pub enum BlindedFailure {
312+
/// This HTLC is being failed backwards by the introduction node, and thus should be failed with
313+
/// [`msgs::UpdateFailHTLC`] and error code `0x8000|0x4000|24`.
311314
FromIntroductionNode,
315+
/// This HTLC is being failed backwards by a blinded node within the path, and thus should be
316+
/// failed with [`msgs::UpdateFailMalformedHTLC`] and error code `0x8000|0x4000|24`.
312317
FromBlindedNode,
313318
}
314319

0 commit comments

Comments
 (0)