- long ret = bindings.GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
- if (ret < 1024) { return null; }
- GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
+ long ret = bindings.GossipTimestampFilter_new(InternalUtils.check_arr_len(chain_hash_arg, 32), first_timestamp_arg, timestamp_range_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ GossipTimestampFilter ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new GossipTimestampFilter(null, ret); }