Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused blob variable in recovery #481

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading