Class UpdateFailMalformedHTLC


  • public class UpdateFailMalformedHTLC
    extends Object
    An [`update_fail_malformed_htlc`] message to be sent to or received from a peer. [`update_fail_malformed_htlc`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#removing-an-htlc-update_fulfill_htlc-update_fail_htlc-and-update_fail_malformed_htlc
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_htlc_id

        public long get_htlc_id()
        The HTLC ID
      • set_htlc_id

        public void set_htlc_id​(long val)
        The HTLC ID
      • get_failure_code

        public short get_failure_code()
        The failure code
      • set_failure_code

        public void set_failure_code​(short val)
        The failure code
      • eq

        public boolean eq​(UpdateFailMalformedHTLC b)
        Checks if two UpdateFailMalformedHTLCs contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

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