chore: bump alloy 5796024 (#8596)

Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
Vid Kersic
2024-06-04 18:49:24 +02:00
committed by GitHub
parent d8096aec45
commit a1d7b870dd
3 changed files with 74 additions and 78 deletions

View File

@ -25,10 +25,6 @@ use std::{sync::Arc, time::Instant};
use tokio::sync::oneshot;
use tracing::{trace, warn};
/// The list of additional V4 caps
// TODO(mattsse): move to alloy
const V4_CAPABILITIES: [&str; 2] = ["engine_getPayloadV4", "engine_newPayloadV4"];
/// The Engine API response sender.
pub type EngineApiSender<Ok> = oneshot::Sender<EngineApiResult<Ok>>;
@ -821,7 +817,7 @@ where
/// Handler for `engine_exchangeCapabilitiesV1`
/// See also <https://github.com/ethereum/execution-apis/blob/6452a6b194d7db269bf1dbd087a267251d3cc7f8/src/engine/common.md#capabilities>
async fn exchange_capabilities(&self, _capabilities: Vec<String>) -> RpcResult<Vec<String>> {
Ok(CAPABILITIES.into_iter().chain(V4_CAPABILITIES.into_iter()).map(str::to_owned).collect())
Ok(CAPABILITIES.iter().cloned().map(str::to_owned).collect())
}
}