Skip to content

Commit

Permalink
chore(eth-sender): remove deprecated proof loading (#2958)
Browse files Browse the repository at this point in the history
## What ❔

Removes deprecated proof loading for eth-sender

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
perekopskiy authored Sep 26, 2024
1 parent df68762 commit 191e81a
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 191e81a

Please sign in to comment.