Remove unused spec field from AvailableBlock (#9411)

N/A


  Remove unused spec field from AvailableBlock


Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Lion - dapplion
2026-06-04 21:14:32 +02:00
committed by GitHub
parent d98de9f8dd
commit eeae8514b1
2 changed files with 1 additions and 7 deletions

View File

@@ -200,7 +200,6 @@ impl<E: EthSpec> PendingComponents<E> {
/// must be persisted in the DB along with the block.
pub fn make_available(
&self,
spec: &Arc<ChainSpec>,
num_expected_columns_opt: Option<usize>,
) -> Result<Option<AvailableExecutedBlock<E>>, AvailabilityCheckError> {
let Some(CachedBlock::Executed(block)) = &self.block else {
@@ -271,7 +270,6 @@ impl<E: EthSpec> PendingComponents<E> {
block: block.clone(),
blob_data,
blobs_available_timestamp,
spec: spec.clone(),
};
self.span.in_scope(|| {
@@ -529,7 +527,7 @@ impl<T: BeaconChainTypes> DataAvailabilityCheckerInner<T> {
num_expected_columns_opt: Option<usize>,
) -> Result<Availability<T::EthSpec>, AvailabilityCheckError> {
if let Some(available_block) =
pending_components.make_available(&self.spec, num_expected_columns_opt)?
pending_components.make_available(num_expected_columns_opt)?
{
// Explicitly drop read lock before acquiring write lock
drop(pending_components);