diff --git a/sz-poc-offsite-2025/evm/lightnode/src/main.rs b/sz-poc-offsite-2025/evm/lightnode/src/main.rs index 181fbd6..88303a2 100644 --- a/sz-poc-offsite-2025/evm/lightnode/src/main.rs +++ b/sz-poc-offsite-2025/evm/lightnode/src/main.rs @@ -34,14 +34,6 @@ struct Args { async fn main() -> Result<(), Box> { let args = Args::parse(); - let url = std::env::var("NOMOS_EXECUTOR").unwrap_or(TESTNET_EXECUTOR.to_string()); - let user = std::env::var("NOMOS_USER").unwrap_or_default(); - let password = std::env::var("NOMOS_PASSWORD").unwrap_or_default(); - let basic_auth = Credentials { - username: user, - password: Some(password), - }; - let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new(&args.log_level)); @@ -54,23 +46,4 @@ async fn main() -> Result<(), Box> { &args.prover_url, &args.zeth_binary_dir.unwrap_or_else(|| std::env::current_dir().unwrap()).join("zeth-ethereum"), ).await?; - - let consensus = NomosClient::new(Url::parse(&url).unwrap(), basic_auth); - - let mut current_tip = HeaderId::default(); - loop { - let info = consensus.get_cryptarchia_info().await?; - info!("Cryptarchia Info: {:?}", info); - - if info.tip != current_tip { - current_tip = info.tip; - info!("New tip: {:?}", current_tip); - let block = consensus.get_block(info.tip).await?; - info!("Block: {:?}", block); - } - - tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; - } - - }