- long ret = bindings.NetworkGraph_new(genesis_hash);
- if (ret >= 0 && ret < 1024) { return null; }
- NetworkGraph ret_hu_conv = new NetworkGraph(null, ret);
+ long ret = bindings.NetworkGraph_new(InternalUtils.check_arr_len(genesis_hash, 32));
+ if (ret >= 0 && ret <= 4096) { return null; }
+ NetworkGraph ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new NetworkGraph(null, ret); }