mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(exex): WAL handle (#11266)
This commit is contained in:
@ -20,7 +20,7 @@ use reth_db_common::init::init_genesis;
|
||||
use reth_ethereum_engine_primitives::EthereumEngineValidator;
|
||||
use reth_evm::test_utils::MockExecutorProvider;
|
||||
use reth_execution_types::Chain;
|
||||
use reth_exex::{ExExContext, ExExEvent, ExExNotification, ExExNotifications};
|
||||
use reth_exex::{ExExContext, ExExEvent, ExExNotification, ExExNotifications, Wal};
|
||||
use reth_network::{config::SecretKey, NetworkConfigBuilder, NetworkManager};
|
||||
use reth_node_api::{
|
||||
FullNodeTypes, FullNodeTypesAdapter, NodeTypes, NodeTypesWithDBAdapter, NodeTypesWithEngine,
|
||||
@ -49,6 +49,7 @@ use reth_provider::{
|
||||
use reth_tasks::TaskManager;
|
||||
use reth_transaction_pool::test_utils::{testing_pool, TestPool};
|
||||
use std::{
|
||||
env::temp_dir,
|
||||
fmt::Debug,
|
||||
future::{poll_fn, Future},
|
||||
sync::Arc,
|
||||
@ -310,6 +311,8 @@ pub async fn test_exex_context_with_chain_spec(
|
||||
components.provider.clone(),
|
||||
components.components.executor.clone(),
|
||||
notifications_rx,
|
||||
// TODO(alexey): do we want to expose WAL to the user?
|
||||
Wal::new(temp_dir())?.handle(),
|
||||
);
|
||||
|
||||
let ctx = ExExContext {
|
||||
|
||||
Reference in New Issue
Block a user