Package org.ldk.structs
Class HTLCFailChannelUpdate
- java.lang.Object
-
- org.ldk.structs.HTLCFailChannelUpdate
-
- Direct Known Subclasses:
HTLCFailChannelUpdate.ChannelClosed
,HTLCFailChannelUpdate.ChannelUpdateMessage
,HTLCFailChannelUpdate.NodeFailure
public class HTLCFailChannelUpdate extends Object
The information we received from a peer along the route of a payment we originated. This is returned by ChannelMessageHandler::handle_update_fail_htlc to be passed into RoutingMessageHandler::handle_htlc_fail_channel_update to update our network map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTLCFailChannelUpdate.ChannelClosed
static class
HTLCFailChannelUpdate.ChannelUpdateMessage
static class
HTLCFailChannelUpdate.NodeFailure
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HTLCFailChannelUpdate
channel_closed(long short_channel_id, boolean is_permanent)
Utility method to constructs a new ChannelClosed-variant HTLCFailChannelUpdatestatic HTLCFailChannelUpdate
channel_update_message(ChannelUpdate msg)
Utility method to constructs a new ChannelUpdateMessage-variant HTLCFailChannelUpdateHTLCFailChannelUpdate
clone()
Creates a copy of the HTLCFailChannelUpdateprotected void
finalize()
static HTLCFailChannelUpdate
node_failure(byte[] node_id, boolean is_permanent)
Utility method to constructs a new NodeFailure-variant HTLCFailChannelUpdate
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public HTLCFailChannelUpdate clone()
Creates a copy of the HTLCFailChannelUpdate
-
channel_update_message
public static HTLCFailChannelUpdate channel_update_message(ChannelUpdate msg)
Utility method to constructs a new ChannelUpdateMessage-variant HTLCFailChannelUpdate
-
channel_closed
public static HTLCFailChannelUpdate channel_closed(long short_channel_id, boolean is_permanent)
Utility method to constructs a new ChannelClosed-variant HTLCFailChannelUpdate
-
node_failure
public static HTLCFailChannelUpdate node_failure(byte[] node_id, boolean is_permanent)
Utility method to constructs a new NodeFailure-variant HTLCFailChannelUpdate
-
-