Package org.ldk.structs
Class NetworkUpdate
- java.lang.Object
-
- org.ldk.structs.NetworkUpdate
-
- Direct Known Subclasses:
NetworkUpdate.ChannelClosed
,NetworkUpdate.ChannelUpdateMessage
,NetworkUpdate.NodeFailure
public class NetworkUpdate extends Object
Update to the [`NetworkGraph`] based on payment failure information conveyed via the Onion return packet by a node along the route. See [BOLT #4] for details. [BOLT #4]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkUpdate.ChannelClosed
static class
NetworkUpdate.ChannelUpdateMessage
static class
NetworkUpdate.NodeFailure
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkUpdate
channel_closed(long short_channel_id, boolean is_permanent)
Utility method to constructs a new ChannelClosed-variant NetworkUpdatestatic NetworkUpdate
channel_update_message(ChannelUpdate msg)
Utility method to constructs a new ChannelUpdateMessage-variant NetworkUpdateNetworkUpdate
clone()
Creates a copy of the NetworkUpdateprotected void
finalize()
static NetworkUpdate
node_failure(byte[] node_id, boolean is_permanent)
Utility method to constructs a new NodeFailure-variant NetworkUpdatebyte[]
write()
Serialize the NetworkUpdate object into a byte array which can be read by NetworkUpdate_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public NetworkUpdate clone()
Creates a copy of the NetworkUpdate
-
channel_update_message
public static NetworkUpdate channel_update_message(ChannelUpdate msg)
Utility method to constructs a new ChannelUpdateMessage-variant NetworkUpdate
-
channel_closed
public static NetworkUpdate channel_closed(long short_channel_id, boolean is_permanent)
Utility method to constructs a new ChannelClosed-variant NetworkUpdate
-
node_failure
public static NetworkUpdate node_failure(byte[] node_id, boolean is_permanent)
Utility method to constructs a new NodeFailure-variant NetworkUpdate
-
write
public byte[] write()
Serialize the NetworkUpdate object into a byte array which can be read by NetworkUpdate_read
-
-