Add Eth Version Header (#4528)
## Issue Addressed Closes #4525 ## Proposed Changes `GET /eth/v1/validator/blinded_blocks` endpoint and `GET /eth/v1/validator/blocks` now send `Eth-Version` header. Co-authored-by: Gua00va <105484243+Gua00va@users.noreply.github.com>
This commit is contained in:
parent
b5337c0ea5
commit
117802cef1
@ -2697,6 +2697,7 @@ pub fn serve<T: BeaconChainTypes>(
|
|||||||
|
|
||||||
fork_versioned_response(endpoint_version, fork_name, block)
|
fork_versioned_response(endpoint_version, fork_name, block)
|
||||||
.map(|response| warp::reply::json(&response).into_response())
|
.map(|response| warp::reply::json(&response).into_response())
|
||||||
|
.map(|res| add_consensus_version_header(res, fork_name))
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -2754,6 +2755,7 @@ pub fn serve<T: BeaconChainTypes>(
|
|||||||
// Pose as a V2 endpoint so we return the fork `version`.
|
// Pose as a V2 endpoint so we return the fork `version`.
|
||||||
fork_versioned_response(V2, fork_name, block)
|
fork_versioned_response(V2, fork_name, block)
|
||||||
.map(|response| warp::reply::json(&response).into_response())
|
.map(|response| warp::reply::json(&response).into_response())
|
||||||
|
.map(|res| add_consensus_version_header(res, fork_name))
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user