- /**
- * The feerate for the commitment transaction set by the channel initiator
- */
- public int get_commitment_feerate_sat_per_1000_weight() {
- int ret = bindings.OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The feerate for the commitment transaction set by the channel initiator
- */
- public void set_commitment_feerate_sat_per_1000_weight(int val) {
- bindings.OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * Part of the channel value contributed by the channel initiator
- */
- public long get_funding_satoshis() {
- long ret = bindings.OpenChannelV2_get_funding_satoshis(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * Part of the channel value contributed by the channel initiator
- */
- public void set_funding_satoshis(long val) {
- bindings.OpenChannelV2_set_funding_satoshis(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The threshold below which outputs on transactions broadcast by the channel initiator will be
- * omitted
- */
- public long get_dust_limit_satoshis() {
- long ret = bindings.OpenChannelV2_get_dust_limit_satoshis(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The threshold below which outputs on transactions broadcast by the channel initiator will be
- * omitted
- */
- public void set_dust_limit_satoshis(long val) {
- bindings.OpenChannelV2_set_dust_limit_satoshis(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The maximum inbound HTLC value in flight towards channel initiator, in milli-satoshi
- */
- public long get_max_htlc_value_in_flight_msat() {
- long ret = bindings.OpenChannelV2_get_max_htlc_value_in_flight_msat(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The maximum inbound HTLC value in flight towards channel initiator, in milli-satoshi
- */
- public void set_max_htlc_value_in_flight_msat(long val) {
- bindings.OpenChannelV2_set_max_htlc_value_in_flight_msat(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The minimum HTLC size incoming to channel initiator, in milli-satoshi
- */
- public long get_htlc_minimum_msat() {
- long ret = bindings.OpenChannelV2_get_htlc_minimum_msat(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The minimum HTLC size incoming to channel initiator, in milli-satoshi
- */
- public void set_htlc_minimum_msat(long val) {
- bindings.OpenChannelV2_set_htlc_minimum_msat(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if they
- * broadcast a commitment transaction
- */
- public short get_to_self_delay() {
- short ret = bindings.OpenChannelV2_get_to_self_delay(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if they
- * broadcast a commitment transaction
- */
- public void set_to_self_delay(short val) {
- bindings.OpenChannelV2_set_to_self_delay(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The maximum number of inbound HTLCs towards channel initiator
- */
- public short get_max_accepted_htlcs() {
- short ret = bindings.OpenChannelV2_get_max_accepted_htlcs(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The maximum number of inbound HTLCs towards channel initiator
- */
- public void set_max_accepted_htlcs(short val) {
- bindings.OpenChannelV2_set_max_accepted_htlcs(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-