import org.ldk.util.*;
import java.util.Arrays;
+
+/**
+ * The information we received from a peer along the route of a payment we originated. This is
+ * returned by ChannelMessageHandler::handle_update_fail_htlc to be passed into
+ * RoutingMessageHandler::handle_htlc_fail_channel_update to update our network map.
+ */
@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class HTLCFailChannelUpdate extends CommonBase {
private HTLCFailChannelUpdate(Object _dummy, long ptr) { super(ptr); }
this.is_permanent = obj.is_permanent;
}
}
+ /**
+ * Creates a copy of the HTLCFailChannelUpdate
+ */
+ public HTLCFailChannelUpdate clone() {
+ long ret = bindings.HTLCFailChannelUpdate_clone(this.ptr);
+ HTLCFailChannelUpdate ret_hu_conv = HTLCFailChannelUpdate.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
}