- public void set_first_per_commitment_point(AcceptChannel this_ptr, byte[] val) {
- bindings.AcceptChannel_set_first_per_commitment_point(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Creates a copy of the AcceptChannel
+ */
+ public AcceptChannel clone() {
+ long ret = bindings.AcceptChannel_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ AcceptChannel ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new AcceptChannel(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;