Class HTLCUpdate


  • public class HTLCUpdate
    extends Object
    Simple structure sent back by `chain::Watch` when an HTLC from a forward channel is detected on chain. Used to update the corresponding HTLC in the backward channel. Failing to pass the preimage claim backward will lead to loss of funds.
    • Method Detail

      • eq

        public boolean eq​(HTLCUpdate b)
        Checks if two HTLCUpdates 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 HTLCUpdate object into a byte array which can be read by HTLCUpdate_read