Move processing cache out of DA (#5420)

* Move processing cache out of DA

* Merge branch 'sigp/unstable' into non-da-processing-cach

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into non-da-processing-cache

* remove unused file, remove outdated TODO, add is_deneb check to missing blob id calculations

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into non-da-processing-cache

* fix lints
This commit is contained in:
Lion - dapplion
2024-04-11 02:19:40 +09:00
committed by GitHub
parent b1f9751a69
commit 30dc260472
10 changed files with 82 additions and 209 deletions

View File

@@ -278,19 +278,11 @@ impl<L: Lookup, T: BeaconChainTypes> SingleBlockLookup<L, T> {
if let Some(components) = self.child_components.as_ref() {
self.da_checker.get_missing_blob_ids(
block_root,
&components.downloaded_block,
components.downloaded_block.as_ref().map(|b| b.as_ref()),
&components.downloaded_blobs,
)
} else {
let Some(processing_components) = self.da_checker.get_processing_components(block_root)
else {
return MissingBlobs::new_without_block(block_root, self.da_checker.is_deneb());
};
self.da_checker.get_missing_blob_ids(
block_root,
&processing_components.block,
&processing_components.blob_commitments,
)
self.da_checker.get_missing_blob_ids_with(block_root)
}
}

View File

@@ -1077,7 +1077,6 @@ fn test_same_chain_race_condition() {
mod deneb_only {
use super::*;
use crate::sync::SyncMessage;
use beacon_chain::data_availability_checker::AvailabilityCheckError;
use ssz_types::VariableList;