11//! Local node setup with Base Sepolia chainspec
22
3- use crate :: engine:: EngineApi ;
3+ use std:: { any:: Any , net:: SocketAddr , sync:: Arc } ;
4+
45use alloy_genesis:: Genesis ;
56use alloy_provider:: RootProvider ;
67use alloy_rpc_client:: RpcClient ;
7- use base_reth_flashblocks_rpc:: rpc:: { EthApiExt , EthApiOverrideServer } ;
8- use base_reth_flashblocks_rpc:: state:: FlashblocksState ;
9- use base_reth_flashblocks_rpc:: subscription:: { Flashblock , FlashblocksReceiver } ;
8+ use base_reth_flashblocks_rpc:: {
9+ rpc:: { EthApiExt , EthApiOverrideServer } ,
10+ state:: FlashblocksState ,
11+ subscription:: { Flashblock , FlashblocksReceiver } ,
12+ } ;
1013use eyre:: Result ;
1114use futures_util:: Future ;
1215use once_cell:: sync:: OnceCell ;
1316use op_alloy_network:: Optimism ;
14- use reth:: api:: { FullNodeTypesAdapter , NodeTypesWithDBAdapter } ;
15- use reth:: args:: { DiscoveryArgs , NetworkArgs , RpcServerArgs } ;
16- use reth:: builder:: {
17- Node , NodeBuilder , NodeBuilderWithComponents , NodeConfig , NodeHandle , WithLaunchContext ,
17+ use reth:: {
18+ api:: { FullNodeTypesAdapter , NodeTypesWithDBAdapter } ,
19+ args:: { DiscoveryArgs , NetworkArgs , RpcServerArgs } ,
20+ builder:: {
21+ Node , NodeBuilder , NodeBuilderWithComponents , NodeConfig , NodeHandle , WithLaunchContext ,
22+ } ,
23+ core:: exit:: NodeExitFuture ,
24+ tasks:: TaskManager ,
1825} ;
19- use reth:: core:: exit:: NodeExitFuture ;
20- use reth:: tasks:: TaskManager ;
2126use reth_db:: {
2227 ClientVersion , DatabaseEnv , init_db,
2328 mdbx:: DatabaseArguments ,
@@ -30,16 +35,13 @@ use reth_node_core::{
3035 dirs:: { DataDirPath , MaybePlatformPath } ,
3136} ;
3237use reth_optimism_chainspec:: OpChainSpec ;
33- use reth_optimism_node:: OpNode ;
34- use reth_optimism_node:: args:: RollupArgs ;
35- use reth_provider:: CanonStateSubscriptions ;
36- use reth_provider:: providers:: BlockchainProvider ;
37- use std:: any:: Any ;
38- use std:: net:: SocketAddr ;
39- use std:: sync:: Arc ;
38+ use reth_optimism_node:: { OpNode , args:: RollupArgs } ;
39+ use reth_provider:: { CanonStateSubscriptions , providers:: BlockchainProvider } ;
4040use tokio:: sync:: { mpsc, oneshot} ;
4141use tokio_stream:: StreamExt ;
4242
43+ use crate :: engine:: EngineApi ;
44+
4345pub const BASE_CHAIN_ID : u64 = 84532 ;
4446
4547pub type LocalNodeProvider = BlockchainProvider < NodeTypesWithDBAdapter < OpNode , TmpDB > > ;
0 commit comments