@@ -10,7 +10,6 @@ use init4_bin_base::{
1010 deps:: tracing:: { info, info_span} ,
1111 utils:: from_env:: FromEnv ,
1212} ;
13- use signet_types:: constants:: SignetSystemConstants ;
1413use tokio:: select;
1514
1615// Note: Must be set to `multi_thread` to support async tasks.
@@ -22,19 +21,14 @@ async fn main() -> eyre::Result<()> {
2221
2322 // Pull the configuration from the environment
2423 let config = BuilderConfig :: from_env ( ) ?. clone ( ) ;
25- let constants = SignetSystemConstants :: pecorino ( ) ;
2624
2725 // We connect the WS greedily, so we can fail early if the connection is
2826 // invalid.
2927 let ru_provider = config. connect_ru_provider ( ) . await ?;
3028
3129 // Spawn the EnvTask
32- let env_task = EnvTask :: new (
33- config. clone ( ) ,
34- constants. clone ( ) ,
35- config. connect_host_provider ( ) . await ?,
36- ru_provider. clone ( ) ,
37- ) ;
30+ let env_task =
31+ EnvTask :: new ( config. clone ( ) , config. connect_host_provider ( ) . await ?, ru_provider. clone ( ) ) ;
3832 let ( block_env, env_jh) = env_task. spawn ( ) ;
3933
4034 // Spawn the cache system
@@ -55,7 +49,6 @@ async fn main() -> eyre::Result<()> {
5549 zenith,
5650 quincey,
5751 config : config. clone ( ) ,
58- constants : constants. clone ( ) ,
5952 outbound_tx_channel : tx_channel,
6053 } ;
6154
@@ -64,7 +57,8 @@ async fn main() -> eyre::Result<()> {
6457
6558 // Set up the simulator
6659 let sim = Simulator :: new ( & config, ru_provider. clone ( ) , block_env) ;
67- let build_jh = sim. spawn_simulator_task ( constants, cache_system. sim_cache , submit_channel) ;
60+ let build_jh =
61+ sim. spawn_simulator_task ( config. constants . clone ( ) , cache_system. sim_cache , submit_channel) ;
6862
6963 // Start the healthcheck server
7064 let server = serve_builder ( ( [ 0 , 0 , 0 , 0 ] , config. builder_port ) ) ;
0 commit comments