- // Skipped ChannelMessageHandler_handle_open_channel
- // Skipped ChannelMessageHandler_handle_accept_channel
+
+ /**
+ * Handle an incoming open_channel message from the given peer.
+ */
+ public void handle_open_channel(byte[] their_node_id, InitFeatures their_features, OpenChannel msg) {
+ bindings.ChannelMessageHandler_handle_open_channel(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
+ this.ptrs_to.add(msg);
+ }
+
+ /**
+ * Handle an incoming accept_channel message from the given peer.
+ */
+ public void handle_accept_channel(byte[] their_node_id, InitFeatures their_features, AcceptChannel msg) {
+ bindings.ChannelMessageHandler_handle_accept_channel(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
+ this.ptrs_to.add(msg);
+ }
+
+ /**
+ * Handle an incoming funding_created message from the given peer.
+ */