mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-17 12:33:10 +00:00
remove printlns
This commit is contained in:
parent
c562665c10
commit
fe80b62415
@ -1,5 +1,3 @@
|
||||
use std::ops::Range;
|
||||
|
||||
use nomos::{CryptarchiaInfo, HeaderId};
|
||||
use reqwest::Url;
|
||||
use tracing::{error, info};
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user