chore: bump alloy 0bb7604 (#8107)

This commit is contained in:
Matthias Seitz
2024-05-05 20:26:29 +02:00
committed by GitHub
parent fa59ec8078
commit 199503531c
6 changed files with 83 additions and 71 deletions

View File

@ -1,5 +1,8 @@
use crate::traits::PayloadEnvelopeExt;
use jsonrpsee::http_client::{transport::HttpBackend, HttpClient};
use jsonrpsee::{
core::client::ClientT,
http_client::{transport::HttpBackend, HttpClient},
};
use reth::{
api::{EngineTypes, PayloadBuilderAttributes},
providers::CanonStateNotificationStream,
@ -29,6 +32,14 @@ impl<E: EngineTypes + 'static> EngineApiTestContext<E> {
Ok(EngineApiClient::<E>::get_payload_v3(&self.engine_api_client, payload_id).await?)
}
/// Retrieves a v3 payload from the engine api as serde value
pub async fn get_payload_v3_value(
&self,
payload_id: PayloadId,
) -> eyre::Result<serde_json::Value> {
Ok(self.engine_api_client.request("engine_getPayloadV3", (payload_id,)).await?)
}
/// Submits a payload to the engine api
pub async fn submit_payload(
&self,

View File

@ -112,7 +112,7 @@ where
// wait for the payload builder to have finished building
self.payload.wait_for_built_payload(eth_attr.payload_id()).await;
// trigger resolve payload via engine api
self.engine_api.get_payload_v3(eth_attr.payload_id()).await?;
self.engine_api.get_payload_v3_value(eth_attr.payload_id()).await?;
// ensure we're also receiving the built payload as event
Ok((self.payload.expect_built_payload().await?, eth_attr))
}