Skip to content

Commit

Permalink
chore(dispatcher): log received blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Aug 15, 2024
1 parent 193097a commit 1290793
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions offchain/dispatcher/src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use eth_state_fold_types::{Block, BlockStreamItem};
use rollups_events::DAppMetadata;
use std::sync::Arc;
use tokio_stream::StreamExt;
use tracing::{error, instrument, trace, warn};
use tracing::{error, info, instrument, trace, warn};
use types::foldables::{InputBox, InputBoxInitialState};

use crate::{
Expand Down Expand Up @@ -92,12 +92,8 @@ pub async fn start(
match block_subscription.next().await {
Some(Ok(BlockStreamItem::NewBlock(b))) => {
// Normal operation, react on newest block.
trace!(
"Received block number {} and hash {:?}, parent: {:?}",
b.number,
b.hash,
b.parent_hash
);
info!("Received block number {}", b.number);
trace!("Block hash {:?}, parent: {:?}", b.hash, b.parent_hash);
process_block(
&b,
&state_server,
Expand Down

0 comments on commit 1290793

Please sign in to comment.