Package org.ldk.structs
Class TxAckRbf
- java.lang.Object
-
- org.ldk.structs.TxAckRbf
-
public class TxAckRbf extends Object
A tx_ack_rbf message which acknowledges replacement of the transaction after it's been completed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxAckRbfclone()Creates a copy of the TxAckRbfbooleaneq(TxAckRbf b)Checks if two TxAckRbfs contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDOption_i64Zget_funding_output_contribution()The number of satoshis the sender will contribute to or, if negative, remove from (e.g.static TxAckRbfof(byte[] channel_id_arg, Option_i64Z funding_output_contribution_arg)Constructs a new TxAckRbf given each fieldstatic Result_TxAckRbfDecodeErrorZread(byte[] ser)Read a TxAckRbf from a byte array, created by TxAckRbf_writevoidset_channel_id(byte[] val)The channel IDvoidset_funding_output_contribution(Option_i64Z val)The number of satoshis the sender will contribute to or, if negative, remove from (e.g.byte[]write()Serialize the TxAckRbf object into a byte array which can be read by TxAckRbf_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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_funding_output_contribution
public Option_i64Z get_funding_output_contribution()
The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
-
set_funding_output_contribution
public void set_funding_output_contribution(Option_i64Z val)
The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
-
of
public static TxAckRbf of(byte[] channel_id_arg, Option_i64Z funding_output_contribution_arg)
Constructs a new TxAckRbf given each field
-
eq
public boolean eq(TxAckRbf b)
Checks if two TxAckRbfs 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 TxAckRbf object into a byte array which can be read by TxAckRbf_read
-
read
public static Result_TxAckRbfDecodeErrorZ read(byte[] ser)
Read a TxAckRbf from a byte array, created by TxAckRbf_write
-
-