mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-05 20:45:02 -05:00
feat: NodePrimitivesProvider (#12855)
This commit is contained in:
@@ -204,13 +204,13 @@ impl NodeTypesWithEngine for OpNode {
|
||||
#[derive(Debug)]
|
||||
pub struct OpAddOns<N: FullNodeComponents>(pub RpcAddOns<N, OpEthApi<N>, OpEngineValidatorBuilder>);
|
||||
|
||||
impl<N: FullNodeComponents> Default for OpAddOns<N> {
|
||||
impl<N: FullNodeComponents<Types: NodeTypes<Primitives = OpPrimitives>>> Default for OpAddOns<N> {
|
||||
fn default() -> Self {
|
||||
Self::new(None)
|
||||
}
|
||||
}
|
||||
|
||||
impl<N: FullNodeComponents> OpAddOns<N> {
|
||||
impl<N: FullNodeComponents<Types: NodeTypes<Primitives = OpPrimitives>>> OpAddOns<N> {
|
||||
/// Create a new instance with the given `sequencer_http` URL.
|
||||
pub fn new(sequencer_http: Option<String>) -> Self {
|
||||
Self(RpcAddOns::new(move |ctx| OpEthApi::new(ctx, sequencer_http), Default::default()))
|
||||
@@ -418,7 +418,11 @@ where
|
||||
) -> eyre::Result<PayloadBuilderHandle<OpEngineTypes>>
|
||||
where
|
||||
Node: FullNodeTypes<
|
||||
Types: NodeTypesWithEngine<Engine = OpEngineTypes, ChainSpec = OpChainSpec>,
|
||||
Types: NodeTypesWithEngine<
|
||||
Engine = OpEngineTypes,
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
>,
|
||||
>,
|
||||
Pool: TransactionPool + Unpin + 'static,
|
||||
Evm: ConfigureEvm<Header = Header>,
|
||||
@@ -453,8 +457,13 @@ where
|
||||
|
||||
impl<Node, Pool, Txs> PayloadServiceBuilder<Node, Pool> for OpPayloadBuilder<Txs>
|
||||
where
|
||||
Node:
|
||||
FullNodeTypes<Types: NodeTypesWithEngine<Engine = OpEngineTypes, ChainSpec = OpChainSpec>>,
|
||||
Node: FullNodeTypes<
|
||||
Types: NodeTypesWithEngine<
|
||||
Engine = OpEngineTypes,
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
>,
|
||||
>,
|
||||
Pool: TransactionPool + Unpin + 'static,
|
||||
Txs: OpPayloadTransactions,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user