Skip to content

Commit 909cef1

Browse files
Make BlindedFailure enum pub.
Necessary to include it in the public PendingHTLCInfo struct in the next commit.
1 parent 2864212 commit 909cef1

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
@@ -304,10 +304,15 @@ pub(super) enum HTLCForwardInfo {
304304
},
305305
}
306306

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

0 commit comments

Comments
 (0)