pub type TestExExContext = ExExContext<Adapter>;
Expand description
An [ExExContext
] using the Adapter
type.
Aliased Type§
struct TestExExContext {
pub head: Head,
pub config: NodeConfig<ChainSpec>,
pub reth_config: Config,
pub events: UnboundedSender<ExExEvent>,
pub notifications: ExExNotifications<BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>, MockExecutorProvider>,
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>>>>>, EthNetworkPrimitives, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>>,
}
Fields§
§head: Head
The current head of the blockchain at launch.
config: NodeConfig<ChainSpec>
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 ExExNotification
s.
§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>>>>>, EthNetworkPrimitives, 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: 3824 bytes