Skip to content

Commit

Permalink
Replace / 2 with / EXPANSION_FACTOR
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 19, 2024
1 parent 2a62ef3 commit 021730e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eip7594/eip7594.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ C_KZG_RET compute_cells_and_kzg_proofs(
* @param[in] num_cells The number of available cells provided
* @param[in] s The trusted setup
*
* @remark At least 50% of CELLS_PER_EXT_BLOB cells must be provided.
* @remark At least CELLS_PER_EXT_BLOB/EXPANSION_FACTOR cells must be provided.
* @remark Recovery is faster if there are fewer missing cells.
* @remark If recovered_proofs is NULL, they will not be recomputed.
*/
Expand All @@ -199,7 +199,7 @@ C_KZG_RET recover_cells_and_kzg_proofs(
}

/* Check if it's possible to recover */
if (num_cells < CELLS_PER_EXT_BLOB / 2) {
if (num_cells < CELLS_PER_EXT_BLOB / EXPANSION_FACTOR) {
ret = C_KZG_BADARGS;
goto out;
}
Expand Down

0 comments on commit 021730e

Please sign in to comment.