+ if (ptr != 0) { bindings.RouteHop_free(ptr); }
+ }
+
+ /**
+ * The node_id of the node at this hop.
+ */
+ public byte[] get_pubkey() {
+ byte[] ret = bindings.RouteHop_get_pubkey(this.ptr);
+ return ret;
+ }
+
+ /**
+ * The node_id of the node at this hop.
+ */
+ public void set_pubkey(byte[] val) {
+ bindings.RouteHop_set_pubkey(this.ptr, InternalUtils.check_arr_len(val, 33));
+ }
+
+ /**
+ * The node_announcement features of the node at this hop. For the last hop, these may be
+ * amended to match the features present in the invoice this node generated.
+ */
+ public NodeFeatures get_node_features() {
+ long ret = bindings.RouteHop_get_node_features(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeFeatures(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;