Skip to content

Commit

Permalink
remove deprecared proof loading
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Sep 25, 2024
1 parent 6313c7d commit ad4da90
Showing 1 changed file with 0 additions and 17 deletions.
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
}

0 comments on commit ad4da90

Please sign in to comment.