Package org.ldk.structs
Class NodeInfo
- java.lang.Object
-
- org.ldk.structs.NodeInfo
-
public class NodeInfo extends Object
Details about a node in the network, known from the network announcement.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeInfo
clone()
Creates a copy of the NodeInfoprotected void
finalize()
NodeAnnouncementInfo
get_announcement_info()
More information about a node from node_announcement.RoutingFees
get_lowest_inbound_channel_fees()
Lowest fees enabling routing via any of the enabled, known channels to a node.static NodeInfo
of(long[] channels_arg, RoutingFees lowest_inbound_channel_fees_arg, NodeAnnouncementInfo announcement_info_arg)
Constructs a new NodeInfo given each fieldstatic Result_NodeInfoDecodeErrorZ
read(byte[] ser)
Read a NodeInfo from a byte array, created by NodeInfo_writevoid
set_announcement_info(NodeAnnouncementInfo val)
More information about a node from node_announcement.void
set_channels(long[] val)
All valid channels a node has announcedvoid
set_lowest_inbound_channel_fees(RoutingFees val)
Lowest fees enabling routing via any of the enabled, known channels to a node.byte[]
write()
Serialize the NodeInfo object into a byte array which can be read by NodeInfo_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
set_channels
public void set_channels(long[] val)
All valid channels a node has announced
-
get_lowest_inbound_channel_fees
@Nullable public RoutingFees get_lowest_inbound_channel_fees()
Lowest fees enabling routing via any of the enabled, known channels to a node. The two fields (flat and proportional fee) are independent, meaning they don't have to refer to the same channel. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
set_lowest_inbound_channel_fees
public void set_lowest_inbound_channel_fees(@Nullable RoutingFees val)
Lowest fees enabling routing via any of the enabled, known channels to a node. The two fields (flat and proportional fee) are independent, meaning they don't have to refer to the same channel. Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
-
get_announcement_info
@Nullable public NodeAnnouncementInfo get_announcement_info()
More information about a node from node_announcement. Optional because we store a Node entry after learning about it from a channel announcement, but before receiving a node announcement. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
set_announcement_info
public void set_announcement_info(@Nullable NodeAnnouncementInfo val)
More information about a node from node_announcement. Optional because we store a Node entry after learning about it from a channel announcement, but before receiving a node announcement. Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
-
of
public static NodeInfo of(long[] channels_arg, RoutingFees lowest_inbound_channel_fees_arg, NodeAnnouncementInfo announcement_info_arg)
Constructs a new NodeInfo given each field
-
write
public byte[] write()
Serialize the NodeInfo object into a byte array which can be read by NodeInfo_read
-
read
public static Result_NodeInfoDecodeErrorZ read(byte[] ser)
Read a NodeInfo from a byte array, created by NodeInfo_write
-
-