This commit is contained in:
Pawan Dhananjay
2023-03-21 00:46:31 +05:30
parent 38f2b88dd0
commit 0958ce610f
12 changed files with 44 additions and 196 deletions

View File

@@ -218,11 +218,11 @@ impl BlockId {
chain: &BeaconChain<T>,
) -> Result<Arc<BlobSidecar<T::EthSpec>>, warp::Rejection> {
let root = self.root(chain)?.0;
let Some(data_availability_boundary) = chain.data_availability_boundary() else {
let Some(_data_availability_boundary) = chain.data_availability_boundary() else {
return Err(warp_utils::reject::custom_not_found("Eip4844 fork disabled".into()));
};
match chain.get_blobs(&root) {
Ok(Some(blob)) => todo!(), // Jimmy's PR will fix this,
Ok(Some(_blob)) => todo!(), // Jimmy's PR will fix this,
Ok(None) => Err(warp_utils::reject::custom_not_found(format!(
"Blob with block root {} is not in the store",
root