Remove assumption about FIELD_ELEMENTS_PER_BLOB

This commit is contained in:
Ramana Kumar 2022-12-01 20:31:21 +00:00
parent de36196184
commit 5b0aab2d58
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 2 additions and 3 deletions

View File

@ -801,9 +801,8 @@ C_KZG_RET load_trusted_setup(KZGSettings *out, FILE *in) {
blst_p2_from_affine(&out->g2_values[i], &g2_affine);
}
unsigned int max_scale = 12;
// no-op
// while (((uint64_t)1 << max_scale) < FIELD_ELEMENTS_PER_BLOB) max_scale++;
unsigned int max_scale = 0;
while (((uint64_t)1 << max_scale) < FIELD_ELEMENTS_PER_BLOB) max_scale++;
out->fs = (FFTSettings*)malloc(sizeof(FFTSettings));