update get blobs endpoint name from blobs to blob_sidecars (#4467)

* changed name

* Fix sidecars

* update get blobs endpoint name from blobs to blob_sidecars

---------

Co-authored-by: Rahul Dogra <rahulcooldogra@gmail.com>
This commit is contained in:
realbigsean
2023-07-05 12:04:12 -04:00
committed by GitHub
parent 4a79328055
commit d9254b7ded
2 changed files with 4 additions and 4 deletions

View File

@@ -665,13 +665,13 @@ impl BeaconNodeHttpClient {
Ok(path)
}
/// Path for `v1/beacon/blobs/{block_id}`
/// Path for `v1/beacon/blob_sidecars/{block_id}`
pub fn get_blobs_path(&self, block_id: BlockId) -> Result<Url, Error> {
let mut path = self.eth_path(V1)?;
path.path_segments_mut()
.map_err(|()| Error::InvalidUrl(self.server.clone()))?
.push("beacon")
.push("blobs")
.push("blob_sidecars")
.push(&block_id.to_string());
Ok(path)
}