Class CommitmentUpdate


  • public class CommitmentUpdate
    extends Object
    Struct used to return values from [`RevokeAndACK`] messages, containing a bunch of commitment transaction updates if they were pending.
    • Method Detail

      • get_update_add_htlcs

        public UpdateAddHTLC[] get_update_add_htlcs()
        `update_add_htlc` messages which should be sent
      • set_update_add_htlcs

        public void set_update_add_htlcs​(UpdateAddHTLC[] val)
        `update_add_htlc` messages which should be sent
      • get_update_fulfill_htlcs

        public UpdateFulfillHTLC[] get_update_fulfill_htlcs()
        `update_fulfill_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
      • get_update_fail_htlcs

        public UpdateFailHTLC[] get_update_fail_htlcs()
        `update_fail_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
      • get_update_fail_malformed_htlcs

        public UpdateFailMalformedHTLC[] get_update_fail_malformed_htlcs()
        `update_fail_malformed_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()
        A `commitment_signed` message which should be sent
      • set_commitment_signed

        public void set_commitment_signed​(CommitmentSigned val)
        A `commitment_signed` message which should be sent
      • eq

        public boolean eq​(CommitmentUpdate b)
        Checks if two CommitmentUpdates 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.