Class PaymentConstraints


  • public class PaymentConstraints
    extends Object
    Constraints for relaying over a given [`BlindedHop`]. [`BlindedHop`]: crate::blinded_path::BlindedHop
    • Method Detail

      • get_max_cltv_expiry

        public int get_max_cltv_expiry()
        The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].
      • set_max_cltv_expiry

        public void set_max_cltv_expiry​(int val)
        The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].
      • get_htlc_minimum_msat

        public long get_htlc_minimum_msat()
        The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].
      • set_htlc_minimum_msat

        public void set_htlc_minimum_msat​(long val)
        The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].
      • of

        public static PaymentConstraints of​(int max_cltv_expiry_arg,
                                            long htlc_minimum_msat_arg)
        Constructs a new PaymentConstraints given each field
      • write

        public byte[] write()
        Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read