Fix some todos

This commit is contained in:
Pawan Dhananjay
2024-08-30 16:04:11 -07:00
parent a9cb329a22
commit 60100fc6be
3 changed files with 1 additions and 7 deletions

View File

@@ -1249,10 +1249,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
pub fn get_blobs(&self, block_root: &Hash256) -> Result<BlobSidecarList<T::EthSpec>, Error> {
match self.store.get_blobs(block_root)? {
Some(blobs) => Ok(blobs),
None => Ok(BlobSidecarList::empty(
// TODO(pawan): fix this
self.spec.max_blobs_per_block(Epoch::new(0)) as usize,
)),
None => Ok(BlobSidecarList::empty_uninitialized()),
}
}