* false or returning an Err otherwise.
*/
Result_boolLightningErrorZ handle_channel_update(ChannelUpdate msg);
- /**
- * Handle some updates to the route graph that we learned due to an outbound failed payment.
- */
- void handle_htlc_fail_channel_update(HTLCFailChannelUpdate update);
/**
* Gets a subset of the channel announcements and updates required to dump our routing table
* to a remote node, starting at the short_channel_id indicated by starting_point and
long result = ret != null ? ret.ptr : 0;
return result;
}
- @Override public void handle_htlc_fail_channel_update(long update) {
- HTLCFailChannelUpdate update_hu_conv = HTLCFailChannelUpdate.constr_from_ptr(update);
- arg.handle_htlc_fail_channel_update(update_hu_conv);
- }
@Override public long[] get_next_channel_announcements(long starting_point, byte batch_amount) {
ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate>[] ret = arg.get_next_channel_announcements(starting_point, batch_amount);
long[] result = ret != null ? Arrays.stream(ret).mapToLong(ret_conv_63 -> bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(ret_conv_63.a == null ? 0 : ret_conv_63.a.ptr & ~1, ret_conv_63.b == null ? 0 : ret_conv_63.b.ptr & ~1, ret_conv_63.c == null ? 0 : ret_conv_63.c.ptr & ~1)).toArray() : null;
- /* TODO 2 ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate> */;
+ for (ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate> ret_conv_63: ret) { impl_holder.held.ptrs_to.add(ret_conv_63.a); impl_holder.held.ptrs_to.add(ret_conv_63.b); impl_holder.held.ptrs_to.add(ret_conv_63.c); };
return result;
}
@Override public long[] get_next_node_announcements(byte[] starting_point, byte batch_amount) {
NodeAnnouncement[] ret = arg.get_next_node_announcements(starting_point, batch_amount);
long[] result = ret != null ? Arrays.stream(ret).mapToLong(ret_conv_18 -> ret_conv_18 == null ? 0 : ret_conv_18.ptr & ~1).toArray() : null;
- /* TODO 2 NodeAnnouncement */;
+ for (NodeAnnouncement ret_conv_18: ret) { impl_holder.held.ptrs_to.add(ret_conv_18); };
return result;
}
@Override public void sync_routing_table(byte[] their_node_id, long init) {
return ret_hu_conv;
}
- /**
- * Handle some updates to the route graph that we learned due to an outbound failed payment.
- */
- public void handle_htlc_fail_channel_update(HTLCFailChannelUpdate update) {
- bindings.RoutingMessageHandler_handle_htlc_fail_channel_update(this.ptr, update == null ? 0 : update.ptr & ~1);
- this.ptrs_to.add(update);
- }
-
/**
* Gets a subset of the channel announcements and updates required to dump our routing table
* to a remote node, starting at the short_channel_id indicated by starting_point and