Package org.ldk.structs
Class HTLCUpdate
- java.lang.Object
-
- org.ldk.structs.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HTLCUpdate
clone()
Creates a copy of the HTLCUpdateboolean
eq(HTLCUpdate b)
Checks if two HTLCUpdates contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
static Result_HTLCUpdateDecodeErrorZ
read(byte[] ser)
Read a HTLCUpdate from a byte array, created by HTLCUpdate_writebyte[]
write()
Serialize the HTLCUpdate object into a byte array which can be read by HTLCUpdate_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public HTLCUpdate clone()
Creates a copy of the HTLCUpdate
-
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
-
read
public static Result_HTLCUpdateDecodeErrorZ read(byte[] ser)
Read a HTLCUpdate from a byte array, created by HTLCUpdate_write
-
-