Package org.ldk.structs
Class HTLCDestination
- java.lang.Object
-
- org.ldk.structs.HTLCDestination
-
- Direct Known Subclasses:
HTLCDestination.FailedPayment,HTLCDestination.NextHopChannel,HTLCDestination.UnknownNextHop
public class HTLCDestination extends Object
Intended destination of a failed HTLC as indicated in [`Event::HTLCHandlingFailed`].
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHTLCDestination.FailedPaymentFailure scenario where an HTLC may have been forwarded to be intended for us, but is invalid for some reason, so we reject it.static classHTLCDestination.NextHopChannelWe tried forwarding to a channel but failed to do so.static classHTLCDestination.UnknownNextHopScenario where we are unsure of the next node to forward the HTLC to.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HTLCDestinationclone()Creates a copy of the HTLCDestinationstatic HTLCDestinationfailed_payment(byte[] payment_hash)Utility method to constructs a new FailedPayment-variant HTLCDestinationprotected voidfinalize()static HTLCDestinationnext_hop_channel(byte[] node_id, byte[] channel_id)Utility method to constructs a new NextHopChannel-variant HTLCDestinationstatic HTLCDestinationunknown_next_hop(long requested_forward_scid)Utility method to constructs a new UnknownNextHop-variant HTLCDestinationbyte[]write()Serialize the HTLCDestination object into a byte array which can be read by HTLCDestination_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public HTLCDestination clone()
Creates a copy of the HTLCDestination
-
next_hop_channel
public static HTLCDestination next_hop_channel(byte[] node_id, byte[] channel_id)
Utility method to constructs a new NextHopChannel-variant HTLCDestination
-
unknown_next_hop
public static HTLCDestination unknown_next_hop(long requested_forward_scid)
Utility method to constructs a new UnknownNextHop-variant HTLCDestination
-
failed_payment
public static HTLCDestination failed_payment(byte[] payment_hash)
Utility method to constructs a new FailedPayment-variant HTLCDestination
-
write
public byte[] write()
Serialize the HTLCDestination object into a byte array which can be read by HTLCDestination_read
-
-