- public void set_feerate_per_kw(UpdateFee this_ptr, int val) {
- bindings.UpdateFee_set_feerate_per_kw(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Fee rate per 1000-weight of the transaction
+ */
+ public void set_feerate_per_kw(int val) {
+ bindings.UpdateFee_set_feerate_per_kw(this.ptr, val);
+ }
+
+ /**
+ * Constructs a new UpdateFee given each field
+ */
+ public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg) {
+ long ret = bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UpdateFee ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UpdateFee(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;