mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: expose pool transaction in PayloadTransactions (#14249)
Co-authored-by: Hamdi Allam <hamdi.allam97@gmail.com>
This commit is contained in:
@ -6,6 +6,7 @@ use jsonrpsee_core::{async_trait, RpcResult};
|
||||
use op_alloy_rpc_types_engine::OpPayloadAttributes;
|
||||
use reth_chainspec::ChainSpecProvider;
|
||||
use reth_evm::ConfigureEvmFor;
|
||||
use reth_node_api::NodePrimitives;
|
||||
use reth_optimism_chainspec::OpChainSpec;
|
||||
use reth_optimism_payload_builder::{OpPayloadBuilder, OpPayloadPrimitives};
|
||||
use reth_primitives::SealedHeader;
|
||||
@ -15,6 +16,7 @@ use reth_provider::{
|
||||
pub use reth_rpc_api::DebugExecutionWitnessApiServer;
|
||||
use reth_rpc_server_types::{result::internal_rpc_err, ToRpcResult};
|
||||
use reth_tasks::TaskSpawner;
|
||||
use reth_transaction_pool::{PoolTransaction, TransactionPool};
|
||||
use std::{fmt::Debug, sync::Arc};
|
||||
use tokio::sync::{oneshot, Semaphore};
|
||||
|
||||
@ -55,7 +57,11 @@ where
|
||||
impl<Pool, Provider, EvmConfig> DebugExecutionWitnessApiServer<OpPayloadAttributes>
|
||||
for OpDebugWitnessApi<Pool, Provider, EvmConfig>
|
||||
where
|
||||
Pool: Send + Sync + 'static,
|
||||
Pool: TransactionPool<
|
||||
Transaction: PoolTransaction<
|
||||
Consensus = <Provider::Primitives as NodePrimitives>::SignedTx,
|
||||
>,
|
||||
> + 'static,
|
||||
Provider: BlockReaderIdExt<Header = reth_primitives::Header>
|
||||
+ NodePrimitivesProvider<Primitives: OpPayloadPrimitives>
|
||||
+ StateProviderFactory
|
||||
|
||||
Reference in New Issue
Block a user