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

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

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