Skip to content

Commit

Permalink
Remove unused blob variable in recovery (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Aug 12, 2024
1 parent f7cdb8f commit e5325e7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/eip7594/eip7594.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ C_KZG_RET recover_cells_and_kzg_proofs(
C_KZG_RET ret;
fr_t *recovered_cells_fr = NULL;
g1_t *recovered_proofs_g1 = NULL;
Blob *blob = NULL;

/* Ensure only one blob's worth of cells was provided */
if (num_cells > CELLS_PER_EXT_BLOB) {
Expand All @@ -201,8 +200,6 @@ C_KZG_RET recover_cells_and_kzg_proofs(
if (ret != C_KZG_OK) goto out;
ret = new_g1_array(&recovered_proofs_g1, CELLS_PER_EXT_BLOB);
if (ret != C_KZG_OK) goto out;
ret = c_kzg_malloc((void **)&blob, BYTES_PER_BLOB);
if (ret != C_KZG_OK) goto out;

/* Initialize all cells as missing */
for (size_t i = 0; i < FIELD_ELEMENTS_PER_EXT_BLOB; i++) {
Expand Down Expand Up @@ -282,7 +279,6 @@ C_KZG_RET recover_cells_and_kzg_proofs(
out:
c_kzg_free(recovered_cells_fr);
c_kzg_free(recovered_proofs_g1);
c_kzg_free(blob);
return ret;
}

Expand Down

0 comments on commit e5325e7

Please sign in to comment.