mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user