Class HTLCDestination

    • Method Detail

      • next_hop_channel

        public static HTLCDestination next_hop_channel​(byte[] node_id,
                                                       byte[] channel_id)
        Utility method to constructs a new NextHopChannel-variant HTLCDestination
      • unknown_next_hop

        public static HTLCDestination unknown_next_hop​(long requested_forward_scid)
        Utility method to constructs a new UnknownNextHop-variant HTLCDestination
      • invalid_forward

        public static HTLCDestination invalid_forward​(long requested_forward_scid)
        Utility method to constructs a new InvalidForward-variant HTLCDestination
      • failed_payment

        public static HTLCDestination failed_payment​(byte[] payment_hash)
        Utility method to constructs a new FailedPayment-variant HTLCDestination
      • eq

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

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