X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fenums%2FBlindedFailure.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fenums%2FBlindedFailure.cs;h=230b434dc1b7ae4651e850b903eafa7410754787;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=0000000000000000000000000000000000000000;hpb=a32b8843c44637ebd82c83390d17db573b972153;p=ldk-java diff --git a/c_sharp/src/org/ldk/enums/BlindedFailure.cs b/c_sharp/src/org/ldk/enums/BlindedFailure.cs new file mode 100644 index 00000000..230b434d --- /dev/null +++ b/c_sharp/src/org/ldk/enums/BlindedFailure.cs @@ -0,0 +1,16 @@ +namespace org { namespace ldk { namespace enums {/** + * Whether this blinded HTLC is being failed backwards by the introduction node or a blinded node, + * which determines the failure message that should be used. + */ +public enum BlindedFailure { + /** + * This HTLC is being failed backwards by the introduction node, and thus should be failed with + * [`msgs::UpdateFailHTLC`] and error code `0x8000|0x4000|24`. + */ + LDKBlindedFailure_FromIntroductionNode, + /** + * This HTLC is being failed backwards by a blinded node within the path, and thus should be + * failed with [`msgs::UpdateFailMalformedHTLC`] and error code `0x8000|0x4000|24`. + */ + LDKBlindedFailure_FromBlindedNode, +}} } }