Class NetworkUpdate

    • Method Detail

      • 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