arg.handle_channel_reestablish(their_node_id, msg_hu_conv);
},
+ handle_channel_update (their_node_id: Uint8Array, msg: number): void {
+ const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
+ arg.handle_channel_update(their_node_id, msg_hu_conv);
+ },
+
handle_error (their_node_id: Uint8Array, msg: number): void {
const msg_hu_conv: ErrorMessage = new ErrorMessage(null, msg);
arg.handle_error(their_node_id, msg_hu_conv);
peer_disconnected(their_node_id: Uint8Array, no_connection_possible: boolean): void;
peer_connected(their_node_id: Uint8Array, msg: Init): void;
handle_channel_reestablish(their_node_id: Uint8Array, msg: ChannelReestablish): void;
+ handle_channel_update(their_node_id: Uint8Array, msg: ChannelUpdate): void;
handle_error(their_node_id: Uint8Array, msg: ErrorMessage): void;
}
this.ptrs_to.add(msg);
}
+ public void handle_channel_update(Uint8Array their_node_id, ChannelUpdate msg) {
+ bindings.ChannelMessageHandler_handle_channel_update(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
+ this.ptrs_to.add(msg);
+ }
+
public void handle_error(Uint8Array their_node_id, ErrorMessage msg) {
bindings.ChannelMessageHandler_handle_error(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
this.ptrs_to.add(msg);