- long ret = bindings.BestBlock_new(block_hash, height);
- BestBlock ret_hu_conv = new BestBlock(null, ret);
+ long ret = bindings.BestBlock_new(InternalUtils.check_arr_len(block_hash, 32), height);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new BestBlock(null, ret); }