pending payload cache: drop unused vec ctor arg

This commit is contained in:
dapplion
2026-05-01 03:03:24 +02:00
parent 33c250b54f
commit a4e8b689d8
2 changed files with 1 additions and 6 deletions

View File

@@ -15,10 +15,6 @@ impl<E: EthSpec> Default for PendingColumn<E> {
}
impl<E: EthSpec> PendingColumn<E> {
pub fn new_with_capacity(_blobs: usize) -> Self {
Self { cells: Vec::new() }
}
pub fn insert(&mut self, index: usize, cell: &Cell<E>, proof: &KzgProof) {
if let Some(existing_cell) = self.cells.get_mut(index)
&& existing_cell.is_none()

View File

@@ -81,11 +81,10 @@ impl<E: EthSpec> PendingComponents<E> {
) -> Result<(), AvailabilityCheckError> {
for data_column in kzg_verified_data_columns {
let data_column = data_column.as_data_column();
let num_blobs_expected = self.num_blobs_expected();
let col = self
.verified_data_columns
.entry(*data_column.index())
.or_insert_with(|| PendingColumn::new_with_capacity(num_blobs_expected));
.or_default();
for (cell_idx, (cell, proof)) in data_column
.column()
.iter()