mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(l2-withdrawals): Use OpExecutionPayloadV4 for new payload v4 (#14379)
This commit is contained in:
@ -8,6 +8,7 @@ use alloy_rpc_types_engine::{
|
|||||||
};
|
};
|
||||||
use jsonrpsee::proc_macros::rpc;
|
use jsonrpsee::proc_macros::rpc;
|
||||||
use jsonrpsee_core::RpcResult;
|
use jsonrpsee_core::RpcResult;
|
||||||
|
use op_alloy_rpc_types_engine::OpExecutionPayloadV4;
|
||||||
use reth_node_api::EngineTypes;
|
use reth_node_api::EngineTypes;
|
||||||
|
|
||||||
/// Extension trait that gives access to Optimism engine API RPC methods.
|
/// Extension trait that gives access to Optimism engine API RPC methods.
|
||||||
@ -41,7 +42,7 @@ pub trait OpEngineApi<Engine: EngineTypes> {
|
|||||||
#[method(name = "newPayloadV3")]
|
#[method(name = "newPayloadV3")]
|
||||||
async fn new_payload_v3(
|
async fn new_payload_v3(
|
||||||
&self,
|
&self,
|
||||||
payload: ExecutionPayloadV3,
|
payload: OpExecutionPayloadV4,
|
||||||
versioned_hashes: Vec<B256>,
|
versioned_hashes: Vec<B256>,
|
||||||
parent_beacon_block_root: B256,
|
parent_beacon_block_root: B256,
|
||||||
) -> RpcResult<PayloadStatus>;
|
) -> RpcResult<PayloadStatus>;
|
||||||
|
|||||||
Reference in New Issue
Block a user