- long ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, pubkey);
- if (ret >= 0 && ret < 1024) { return null; }
- Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
+ long ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33));
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(pubkey);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.Option_CVec_NetAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_NetAddressZZ.constr_from_ptr(ret);