pub type TestExExContext = ExExContext<Adapter>;Expand description
An [ExExContext] using the Adapter type.
Aliased Type§
pub struct TestExExContext {
pub head: NumHash,
pub config: NodeConfig<ChainSpec>,
pub reth_config: Config,
pub events: UnboundedSender<ExExEvent>,
pub notifications: ExExNotifications<BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>, MockEvmConfig>,
pub components: NodeAdapter<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, NetworkHandle<BasicNetworkPrimitives<EthPrimitives, EthereumTxEnvelope<TxEip4844WithSidecar<BlobTransactionSidecarVariant>>, NewBlock>>, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, MockEvmConfig, Arc<TestConsensus>>>,
}Fields§
§head: NumHashThe current head of the blockchain at launch.
config: NodeConfig<ChainSpec>The config of the node
reth_config: ConfigThe 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 preemptively emit a FinishedHeight event to specify what
blocks to receive notifications for.
notifications: ExExNotifications<BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>, MockEvmConfig>Channel to receive ExExNotifications.
§Important
Once an ExExNotification is sent over the channel, it is
considered delivered by the node.
components: NodeAdapter<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, NetworkHandle<BasicNetworkPrimitives<EthPrimitives, EthereumTxEnvelope<TxEip4844WithSidecar<BlobTransactionSidecarVariant>>, NewBlock>>, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, MockEvmConfig, 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: 4208 bytes