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_failure

        public static NetworkUpdate channel_failure​(long short_channel_id,
                                                    boolean is_permanent)
        Utility method to constructs a new ChannelFailure-variant NetworkUpdate
      • node_failure

        public static NetworkUpdate node_failure​(byte[] node_id,
                                                 boolean is_permanent)
        Utility method to constructs a new NodeFailure-variant NetworkUpdate
      • eq

        public boolean eq​(NetworkUpdate b)
        Checks if two NetworkUpdates contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
      • write

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