Type Alias reth_exex_test_utils::TestExExContext

source ·
pub type TestExExContext = ExExContext<Adapter>;
Expand description

An [ExExContext] using the Adapter type.

Aliased Type§

struct TestExExContext {
    pub head: Head,
    pub config: NodeConfig,
    pub reth_config: Config,
    pub events: UnboundedSender<ExExEvent>,
    pub notifications: ExExNotifications<BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>, MockExecutorProvider>,
    pub components: NodeAdapter<FullNodeTypesAdapter<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Components<FullNodeTypesAdapter<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>>,
}

Fields§

§head: Head

The current head of the blockchain at launch.

§config: NodeConfig

The config of the node

§reth_config: Config

The loaded node config

§events: UnboundedSender<ExExEvent>

Channel used to send [ExExEvent]s to the rest of the node.

§Important

The exex should emit a FinishedHeight whenever a processed block is safe to prune. Additionally, the exex can pre-emptively emit a FinishedHeight event to specify what blocks to receive notifications for.

§notifications: ExExNotifications<BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>, MockExecutorProvider>

Channel to receive ExExNotifications.

§Important

Once an ExExNotification is sent over the channel, it is considered delivered by the node.

§components: NodeAdapter<FullNodeTypesAdapter<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Components<FullNodeTypesAdapter<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>>

node components

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: 3168 bytes