@@ -84,20 +84,19 @@ impl Devnet {
84
84
"SKIP_CARDANO_BIN_DOWNLOAD" ,
85
85
skip_cardano_bin_download. to_string ( ) ,
86
86
) ;
87
- let command_args = & [
88
- artifacts_target_dir . to_str ( ) . unwrap ( ) ,
89
- & number_of_bft_nodes . to_string ( ) ,
90
- & number_of_pool_nodes . to_string ( ) ,
91
- & cardano_slot_length . to_string ( ) ,
92
- & cardano_epoch_length . to_string ( ) ,
93
- ] ;
87
+ bootstrap_command . env ( "ARTIFACTS_DIR" , artifacts_target_dir . to_str ( ) . unwrap ( ) ) ;
88
+ bootstrap_command . env ( "NUM_BFT_NODES" , number_of_bft_nodes . to_string ( ) ) ;
89
+ bootstrap_command . env ( "NUM_POOL_NODES" , number_of_pool_nodes . to_string ( ) ) ;
90
+ bootstrap_command . env ( "SLOT_LENGTH" , cardano_slot_length . to_string ( ) ) ;
91
+ bootstrap_command . env ( "EPOCH_LENGTH" , cardano_epoch_length . to_string ( ) ) ;
92
+ bootstrap_command . env ( "HARD_FORK_LATEST_ERA_AT_EPOCH" , "1000" ) ; //TODO: set as configuration parameter
93
+
94
94
bootstrap_command
95
95
. current_dir ( devnet_scripts_dir)
96
- . args ( command_args)
97
96
. stdout ( Stdio :: null ( ) )
98
97
. kill_on_drop ( true ) ;
99
98
100
- info ! ( "Bootstrapping the Devnet" ; "script" => & bootstrap_script_path. display( ) , "args" => #? & command_args ) ;
99
+ info ! ( "Bootstrapping the Devnet" ; "script" => & bootstrap_script_path. display( ) ) ;
101
100
102
101
bootstrap_command
103
102
. spawn ( )
@@ -149,7 +148,7 @@ impl Devnet {
149
148
. join ( format ! ( "node-pool{n}/shelley/kes.skey" ) ) ,
150
149
operational_certificate_path : self
151
150
. artifacts_dir
152
- . join ( format ! ( "node-pool{n}/shelley/node .cert" ) ) ,
151
+ . join ( format ! ( "node-pool{n}/shelley/opcert .cert" ) ) ,
153
152
} )
154
153
. collect :: < Vec < _ > > ( ) ;
155
154
@@ -273,7 +272,7 @@ mod tests {
273
272
pool_env_path: PathBuf :: from( r"test/path/node-pool1/pool.env" ) ,
274
273
kes_secret_key_path: PathBuf :: from( r"test/path/node-pool1/shelley/kes.skey" ) ,
275
274
operational_certificate_path: PathBuf :: from(
276
- r"test/path/node-pool1/shelley/node .cert"
275
+ r"test/path/node-pool1/shelley/opcert .cert"
277
276
) ,
278
277
} , ] ,
279
278
} ,
0 commit comments