Feature Guard V2 Engine API Methods

This commit is contained in:
Mark Mackey 2022-12-27 15:55:43 -06:00
parent bfce794777
commit 96da8b9383
No known key found for this signature in database
GPG Key ID: 269A603C167EBC6F

View File

@ -852,11 +852,11 @@ impl HttpJsonRpc {
pub async fn supported_apis_v1(&self) -> Result<SupportedApis, Error> {
Ok(SupportedApis {
new_payload_v1: true,
new_payload_v2: cfg!(not(test)),
new_payload_v2: cfg!(feature = "withdrawals-processing"),
forkchoice_updated_v1: true,
forkchoice_updated_v2: cfg!(not(test)),
forkchoice_updated_v2: cfg!(feature = "withdrawals-processing"),
get_payload_v1: true,
get_payload_v2: cfg!(not(test)),
get_payload_v2: cfg!(feature = "withdrawals-processing"),
exchange_transition_configuration_v1: true,
})
}