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

chore(eth-sender): remove deprecated proof loading #2958

Merged
merged 1 commit into from
Sep 26, 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
17 changes: 0 additions & 17 deletions core/node/eth_sender/src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,22 +526,5 @@ pub async fn load_wrapped_fri_proofs_for_range(
}
}

// We also check file with deprecated name if patch 0 is allowed.
// TODO: remove in the next release.
let is_patch_0_present = allowed_versions.iter().any(|v| v.patch.0 == 0);
if is_patch_0_present {
match blob_store
.get_by_encoded_key(format!("l1_batch_proof_{l1_batch_number}.bin"))
.await
{
Ok(proof) => return Some(proof),
Err(ObjectStoreError::KeyNotFound(_)) => (), // do nothing, proof is not ready yet
Err(err) => panic!(
"Failed to load proof for batch {}: {}",
l1_batch_number.0, err
),
}
}

None
}
Loading