Class NodeInfo


  • public class NodeInfo
    extends Object
    Details about a node in the network, known from the network announcement.
    • Method Detail

      • 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
      • clone

        public NodeInfo clone()
        Creates a copy of the NodeInfo
        Overrides:
        clone in class Object
      • write

        public byte[] write()
        Serialize the NodeInfo object into a byte array which can be read by NodeInfo_read