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 HTLCUpdateprotected 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
-
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
-
-