+ LDKChannelPublicKeys channel_points_var = *channel_points;
+ if (channel_points->inner != NULL)
+ channel_points_var = ChannelPublicKeys_clone(channel_points);
+ CHECK((((long)channel_points_var.inner) & 1) == 0); // We rely on a free low bit, malloc guarantees this.
+ CHECK((((long)&channel_points_var) & 1) == 0); // We rely on a free low bit, pointer alignment guarantees this.
+ long channel_points_ref = (long)channel_points_var.inner;
+ if (channel_points_var.is_owned) {
+ channel_points_ref |= 1;
+ }
+ jobject obj = (*_env)->NewLocalRef(_env, j_calls->o);
+ CHECK(obj != NULL);
+ return (*_env)->CallVoidMethod(_env, obj, j_calls->on_accept_meth, channel_points_ref, counterparty_selected_contest_delay, holder_selected_contest_delay);
+}
+LDKCVec_u8Z write_jcall(const void* this_arg) {
+ LDKChannelKeys_JCalls *j_calls = (LDKChannelKeys_JCalls*) this_arg;
+ JNIEnv *_env;
+ DO_ASSERT((*j_calls->vm)->GetEnv(j_calls->vm, (void**)&_env, JNI_VERSION_1_8) == JNI_OK);