pub type Adapter = NodeAdapter<RethFullAdapter<TmpDB, TestNode>, <<TestNode as Node<FullNodeTypesAdapter<TestNode, TmpDB, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, TmpDB>>>>>::ComponentsBuilder as NodeComponentsBuilder<RethFullAdapter<TmpDB, TestNode>>>::Components>;
Expand description
The NodeAdapter
for the TestExExContext
. Contains type necessary to
boot the testing environment
Aliased Type§
struct Adapter {
pub components: Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, EthNetworkPrimitives, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>,
pub task_executor: TaskExecutor,
pub provider: BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>,
}
Fields§
§components: Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, EthNetworkPrimitives, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>
The components of the node.
task_executor: TaskExecutor
The task executor for the node.
provider: BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>
The provider of the node.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 344 bytes
Trait Implementations
Source§impl<T, C> Clone for NodeAdapter<T, C>where
T: FullNodeTypes,
C: NodeComponents<T>,
impl<T, C> Clone for NodeAdapter<T, C>where
T: FullNodeTypes,
C: NodeComponents<T>,
Source§fn clone(&self) -> NodeAdapter<T, C>
fn clone(&self) -> NodeAdapter<T, C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T, C> Debug for NodeAdapter<T, C>where
T: Debug + FullNodeTypes,
C: Debug + NodeComponents<T>,
<T as FullNodeTypes>::Provider: Debug,
impl<T, C> Debug for NodeAdapter<T, C>where
T: Debug + FullNodeTypes,
C: Debug + NodeComponents<T>,
<T as FullNodeTypes>::Provider: Debug,
Source§impl<T, C> FullNodeComponents for NodeAdapter<T, C>where
T: FullNodeTypes,
C: NodeComponents<T>,
impl<T, C> FullNodeComponents for NodeAdapter<T, C>where
T: FullNodeTypes,
C: NodeComponents<T>,
Source§type Pool = <C as NodeComponents<T>>::Pool
type Pool = <C as NodeComponents<T>>::Pool
The transaction pool of the node.
Source§type Evm = <C as NodeComponents<T>>::Evm
type Evm = <C as NodeComponents<T>>::Evm
The node’s EVM configuration, defining settings for the Ethereum Virtual Machine.
Source§type Executor = <C as NodeComponents<T>>::Executor
type Executor = <C as NodeComponents<T>>::Executor
The type that knows how to execute blocks.
Source§type Consensus = <C as NodeComponents<T>>::Consensus
type Consensus = <C as NodeComponents<T>>::Consensus
The consensus type of the node.
Source§type Network = <C as NodeComponents<T>>::Network
type Network = <C as NodeComponents<T>>::Network
Network API.
Source§fn pool(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Pool
fn pool(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Pool
Returns the transaction pool of the node.
Source§fn evm_config(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Evm
fn evm_config(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Evm
Returns the node’s evm config.
Source§fn block_executor(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Executor
fn block_executor(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Executor
Returns the node’s executor type.
Source§fn consensus(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Consensus
fn consensus(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Consensus
Returns the node’s consensus type.
Source§fn network(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Network
fn network(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Network
Returns the handle to the network
Source§fn payload_builder_handle(
&self,
) -> &PayloadBuilderHandle<<<NodeAdapter<T, C> as FullNodeTypes>::Types as NodeTypes>::Payload>
fn payload_builder_handle( &self, ) -> &PayloadBuilderHandle<<<NodeAdapter<T, C> as FullNodeTypes>::Types as NodeTypes>::Payload>
Returns the handle to the payload builder service handling payload building requests from
the engine.
Source§fn provider(&self) -> &<NodeAdapter<T, C> as FullNodeTypes>::Provider
fn provider(&self) -> &<NodeAdapter<T, C> as FullNodeTypes>::Provider
Returns the provider of the node.
Source§fn task_executor(&self) -> &TaskExecutor
fn task_executor(&self) -> &TaskExecutor
Returns handle to runtime.