remove printlns

This commit is contained in:
Petar Radovic 2025-04-24 09:57:56 +02:00 committed by Giacomo Pasini
parent 606f80f846
commit ddade529a6
No known key found for this signature in database
GPG Key ID: FC08489D2D895D4B
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,3 @@
use std::ops::Range;
use nomos::{CryptarchiaInfo, HeaderId};
use reqwest::Url;
use tracing::{error, info};

View File

@ -1,5 +1,6 @@
use clap::Parser;
use evm_lightnode::{Credentials, NomosClient, nomos::HeaderId};
use tracing::info;
use url::Url;
use std::error;
@ -36,13 +37,13 @@ async fn main() -> Result<(), Box<dyn error::Error>> {
let mut current_tip = HeaderId::default();
loop {
let info = consensus.get_cryptarchia_info().await?;
println!("Cryptarchia Info: {:?}", info);
info!("Cryptarchia Info: {:?}", info);
if info.tip != current_tip {
current_tip = info.tip;
println!("New tip: {:?}", current_tip);
info!("New tip: {:?}", current_tip);
let block = consensus.get_block(info.tip).await?;
println!("Block: {:?}", block);
info!("Block: {:?}", block);
}
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;