mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename v1 type (#12205)
This commit is contained in:
@ -110,7 +110,10 @@ pub trait EngineApi<Engine: EngineTypes> {
|
||||
/// Note:
|
||||
/// > Provider software MAY stop the corresponding build process after serving this call.
|
||||
#[method(name = "getPayloadV1")]
|
||||
async fn get_payload_v1(&self, payload_id: PayloadId) -> RpcResult<Engine::ExecutionPayloadV1>;
|
||||
async fn get_payload_v1(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<Engine::ExecutionPayloadEnvelopeV1>;
|
||||
|
||||
/// See also <https://github.com/ethereum/execution-apis/blob/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine/shanghai.md#engine_getpayloadv2>
|
||||
///
|
||||
|
||||
@ -281,7 +281,7 @@ where
|
||||
pub async fn get_payload_v1(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadV1> {
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadEnvelopeV1> {
|
||||
self.inner
|
||||
.payload_store
|
||||
.resolve(payload_id)
|
||||
@ -775,7 +775,7 @@ where
|
||||
async fn get_payload_v1(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<EngineT::ExecutionPayloadV1> {
|
||||
) -> RpcResult<EngineT::ExecutionPayloadEnvelopeV1> {
|
||||
trace!(target: "rpc::engine", "Serving engine_getPayloadV1");
|
||||
let start = Instant::now();
|
||||
let res = Self::get_payload_v1(self, payload_id).await;
|
||||
|
||||
Reference in New Issue
Block a user