Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / ChannelMessageHandler.ts
index 52144c80955458149466f01ae90be06251168ac8..7b1654f5b92416e7b9e4e694a366a829a54a784f 100644 (file)
@@ -35,12 +35,14 @@ import * as bindings from '../bindings' // TODO: figure out location
                         // todo: in-line interface filling
                         handle_open_channel (their_node_id: Uint8Array, their_features: number, msg: number): void {
                                                        const their_features_hu_conv: InitFeatures = new InitFeatures(null, their_features);
+                               their_features_hu_conv.ptrs_to.add(this);
                                                        const msg_hu_conv: OpenChannel = new OpenChannel(null, msg);
                                                        arg.handle_open_channel(their_node_id, their_features_hu_conv, msg_hu_conv);
                                                },
 
                                                handle_accept_channel (their_node_id: Uint8Array, their_features: number, msg: number): void {
                                                        const their_features_hu_conv: InitFeatures = new InitFeatures(null, their_features);
+                               their_features_hu_conv.ptrs_to.add(this);
                                                        const msg_hu_conv: AcceptChannel = new AcceptChannel(null, msg);
                                                        arg.handle_accept_channel(their_node_id, their_features_hu_conv, msg_hu_conv);
                                                },