mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Deneb review common/eth2 (#4698)
* Update comments and small cleanup. * Deserialize into `SsePayloadAttributesV3` for Deneb fork. Update `SignedBlockContents::blobs_cloned` to return blobs for `BlindedBlockAndBlobSidecars`. * Improve code readability and error handling when converting blinded block into full block.
This commit is contained in:
@@ -918,7 +918,7 @@ impl BeaconNodeHttpClient {
|
||||
Ok(Some(response.json().await?))
|
||||
}
|
||||
|
||||
/// `GET v1/beacon/blobs/{block_id}`
|
||||
/// `GET v1/beacon/blob_sidecars/{block_id}`
|
||||
///
|
||||
/// Returns `Ok(None)` on a 404 error.
|
||||
pub async fn get_blobs<T: EthSpec>(
|
||||
@@ -931,8 +931,7 @@ impl BeaconNodeHttpClient {
|
||||
None => return Ok(None),
|
||||
};
|
||||
|
||||
let GenericResponse { data } = response.json().await?;
|
||||
Ok(Some(GenericResponse { data }))
|
||||
Ok(Some(response.json().await?))
|
||||
}
|
||||
|
||||
/// `GET v1/beacon/blinded_blocks/{block_id}`
|
||||
|
||||
Reference in New Issue
Block a user