@@ -208,41 +208,6 @@ impl<DB, ChainSpec: EthChainSpec> NodeBuilder<DB, ChainSpec> {
208208
209209 WithLaunchContext { builder : self . with_database ( db) , task_executor }
210210 }
211-
212- #[ cfg( feature = "test-utils" ) ]
213- pub fn testing_node2 (
214- mut self ,
215- task_executor : TaskExecutor ,
216- ) -> WithLaunchContext < NodeBuilder < Arc < reth_db:: DatabaseEnv > , ChainSpec > > {
217- let path = reth_node_core:: dirs:: MaybePlatformPath :: < DataDirPath > :: from (
218- reth_db:: test_utils:: tempdir_path ( ) ,
219- ) ;
220- self . config = self . config . with_datadir_args ( reth_node_core:: args:: DatadirArgs {
221- datadir : path. clone ( ) ,
222- ..Default :: default ( )
223- } ) ;
224-
225- let data_dir =
226- path. unwrap_or_chain_default ( self . config . chain . chain ( ) , self . config . datadir . clone ( ) ) ;
227-
228- let db = reth_db:: test_utils:: create_test_rw_db_with_path2 ( data_dir. db ( ) ) ;
229-
230- WithLaunchContext { builder : self . with_database ( db) , task_executor }
231- }
232-
233- // /// Creates an _ephemeral_ preconfigured node for testing purposes.
234- // pub fn testing_node_2(
235- // self,
236- // task_executor: TaskExecutor,
237- // ) -> WithLaunchContext<NodeBuilder<Arc<DatabaseEnv>>> {
238- // let (db, path) = create_test_rw_db_2();
239- // let db_path_str = path.to_str().expect("Path is not valid unicode");
240- // let path =
241- // MaybePlatformPath::<DataDirPath>::from_str(db_path_str).expect("Path is not valid");
242- // let data_dir = path.unwrap_or_chain_default(self.config.chain.chain);
243-
244- // WithLaunchContext { builder: self.with_database(db), task_executor }
245- // }
246211}
247212
248213impl < DB , ChainSpec > NodeBuilder < DB , ChainSpec >
0 commit comments