51b3265c175a6519aa60c9916787f48033a6cfc7
[ldk-java] / src / main / java / org / ldk / enums / BlindedFailure.java
1 package org.ldk.enums;
2
3 /**
4  * Whether this blinded HTLC is being failed backwards by the introduction node or a blinded node,
5  * which determines the failure message that should be used.
6  */
7 public enum BlindedFailure {
8         /**
9          * This HTLC is being failed backwards by the introduction node, and thus should be failed with
10          * [`msgs::UpdateFailHTLC`] and error code `0x8000|0x4000|24`.
11          */
12         LDKBlindedFailure_FromIntroductionNode,
13         /**
14          * This HTLC is being failed backwards by a blinded node within the path, and thus should be
15          * failed with [`msgs::UpdateFailMalformedHTLC`] and error code `0x8000|0x4000|24`.
16          */
17         LDKBlindedFailure_FromBlindedNode,
18         ; static native void init();
19         static { init(); }
20 }