@@ -125,7 +125,7 @@ where
125
125
} )
126
126
}
127
127
128
- fn spawn ( config : & C ) -> Result < SpawnOutput > {
128
+ fn spawn ( config : & C , extra_args : Option < Vec < String > > ) -> Result < SpawnOutput > {
129
129
let citrea = get_citrea_path ( ) ?;
130
130
131
131
let kind = C :: node_kind ( ) ;
@@ -145,6 +145,7 @@ where
145
145
146
146
Command :: new ( citrea)
147
147
. args ( get_citrea_args ( config) )
148
+ . args ( extra_args. unwrap_or_default ( ) )
148
149
. envs ( config. env ( ) )
149
150
. stdout ( Stdio :: from ( stdout_file) )
150
151
. stderr ( Stdio :: from ( stderr_file) )
@@ -191,7 +192,7 @@ where
191
192
async fn spawn ( config : & Self :: Config , docker : & Arc < Option < DockerEnv > > ) -> Result < SpawnOutput > {
192
193
match docker. as_ref ( ) {
193
194
Some ( docker) if docker. citrea ( ) => docker. spawn ( config. to_owned ( ) . into ( ) ) . await ,
194
- _ => Self :: spawn ( config) ,
195
+ _ => Self :: spawn ( config, None ) ,
195
196
}
196
197
}
197
198
@@ -251,7 +252,11 @@ where
251
252
Ok ( ( ) )
252
253
}
253
254
254
- async fn start ( & mut self , new_config : Option < Self :: Config > ) -> Result < ( ) > {
255
+ async fn start (
256
+ & mut self ,
257
+ new_config : Option < Self :: Config > ,
258
+ extra_args : Option < Vec < String > > ,
259
+ ) -> Result < ( ) > {
255
260
let config = self . config_mut ( ) ;
256
261
257
262
if let Some ( new_config) = new_config {
@@ -272,7 +277,7 @@ where
272
277
copy_directory ( old_dir, & new_dir) ?;
273
278
config. set_dir ( new_dir) ;
274
279
275
- * self . spawn_output ( ) = Self :: spawn ( config) ?;
280
+ * self . spawn_output ( ) = Self :: spawn ( config, extra_args ) ?;
276
281
self . wait_for_ready ( None ) . await
277
282
}
278
283
}
0 commit comments