mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
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:
@@ -1394,10 +1394,10 @@ pub fn serve<T: BeaconChainTypes>(
|
|||||||
* beacon/blobs
|
* beacon/blobs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// GET beacon/blobs/{block_id}
|
// GET beacon/blob_sidecars/{block_id}
|
||||||
let get_blobs = eth_v1
|
let get_blobs = eth_v1
|
||||||
.and(warp::path("beacon"))
|
.and(warp::path("beacon"))
|
||||||
.and(warp::path("blobs"))
|
.and(warp::path("blob_sidecars"))
|
||||||
.and(block_id_or_err)
|
.and(block_id_or_err)
|
||||||
.and(warp::path::end())
|
.and(warp::path::end())
|
||||||
.and(chain_filter.clone())
|
.and(chain_filter.clone())
|
||||||
|
|||||||
@@ -665,13 +665,13 @@ impl BeaconNodeHttpClient {
|
|||||||
Ok(path)
|
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> {
|
pub fn get_blobs_path(&self, block_id: BlockId) -> Result<Url, Error> {
|
||||||
let mut path = self.eth_path(V1)?;
|
let mut path = self.eth_path(V1)?;
|
||||||
path.path_segments_mut()
|
path.path_segments_mut()
|
||||||
.map_err(|()| Error::InvalidUrl(self.server.clone()))?
|
.map_err(|()| Error::InvalidUrl(self.server.clone()))?
|
||||||
.push("beacon")
|
.push("beacon")
|
||||||
.push("blobs")
|
.push("blob_sidecars")
|
||||||
.push(&block_id.to_string());
|
.push(&block_id.to_string());
|
||||||
Ok(path)
|
Ok(path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user