Package org.ldk.structs
Class CommitmentUpdate
- java.lang.Object
-
- org.ldk.structs.CommitmentUpdate
-
public class CommitmentUpdate extends Object
Struct used to return values from revoke_and_ack messages, containing a bunch of commitment transaction updates if they were pending.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitmentUpdate
clone()
Creates a copy of the CommitmentUpdateprotected void
finalize()
CommitmentSigned
get_commitment_signed()
Finally, the commitment_signed message which should be sentUpdateFee
get_update_fee()
An update_fee message which should be sent Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Nonestatic CommitmentUpdate
of(UpdateAddHTLC[] update_add_htlcs_arg, UpdateFulfillHTLC[] update_fulfill_htlcs_arg, UpdateFailHTLC[] update_fail_htlcs_arg, UpdateFailMalformedHTLC[] update_fail_malformed_htlcs_arg, UpdateFee update_fee_arg, CommitmentSigned commitment_signed_arg)
Constructs a new CommitmentUpdate given each fieldvoid
set_commitment_signed(CommitmentSigned val)
Finally, the commitment_signed message which should be sentvoid
set_update_add_htlcs(UpdateAddHTLC[] val)
update_add_htlc messages which should be sentvoid
set_update_fail_htlcs(UpdateFailHTLC[] val)
update_fail_htlc messages which should be sentvoid
set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val)
update_fail_malformed_htlc messages which should be sentvoid
set_update_fee(UpdateFee val)
An update_fee message which should be sent Note that val (or a relevant inner pointer) may be NULL or all-0s to represent Nonevoid
set_update_fulfill_htlcs(UpdateFulfillHTLC[] val)
update_fulfill_htlc messages which should be sent
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
set_update_add_htlcs
public void set_update_add_htlcs(UpdateAddHTLC[] val)
update_add_htlc messages which should be sent
-
set_update_fulfill_htlcs
public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val)
update_fulfill_htlc messages which should be sent
-
set_update_fail_htlcs
public void set_update_fail_htlcs(UpdateFailHTLC[] val)
update_fail_htlc messages which should be sent
-
set_update_fail_malformed_htlcs
public void set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val)
update_fail_malformed_htlc messages which should be sent
-
get_update_fee
@Nullable public UpdateFee get_update_fee()
An update_fee message which should be sent Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
set_update_fee
public void set_update_fee(@Nullable UpdateFee val)
An update_fee message which should be sent Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
-
get_commitment_signed
public CommitmentSigned get_commitment_signed()
Finally, the commitment_signed message which should be sent
-
set_commitment_signed
public void set_commitment_signed(CommitmentSigned val)
Finally, the commitment_signed message which should be sent
-
of
public static CommitmentUpdate of(UpdateAddHTLC[] update_add_htlcs_arg, UpdateFulfillHTLC[] update_fulfill_htlcs_arg, UpdateFailHTLC[] update_fail_htlcs_arg, UpdateFailMalformedHTLC[] update_fail_malformed_htlcs_arg, UpdateFee update_fee_arg, CommitmentSigned commitment_signed_arg)
Constructs a new CommitmentUpdate given each field
-
clone
public CommitmentUpdate clone()
Creates a copy of the CommitmentUpdate
-
-