Skip to content

Commit

Permalink
Cleanup redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Jul 13, 2024
1 parent 7929e03 commit 58aed5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions crates/sequencer/src/commitment_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ pub fn get_commitment_info(
debug!("State diff threshold reached. Committing...");
}

debug!("L2 range to submit: {}..{}", l2_start, l2_end);

Ok(Some(CommitmentInfo {
l2_height_range: BatchNumber(l2_start)..=BatchNumber(l2_end),
}))
Expand Down
10 changes: 5 additions & 5 deletions crates/sequencer/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ where
self.storage_manager
.save_change_set_l2(l2_height, slot_result.change_set)?;

tracing::debug!("Finalizing l2 height: {:?}", l2_height);
self.storage_manager.finalize_l2(l2_height)?;

// connect L1 and L2 height
Expand Down Expand Up @@ -594,7 +593,7 @@ where
&mut self,
state_diff_threshold_reached: bool,
) -> anyhow::Result<()> {
debug!("Sequencer: new L1 block, checking if commitment should be submitted");
debug!("Sequencer: Checking if commitment should be submitted");
let inscription_queue = self.da_service.get_send_transaction_queue();
let min_soft_confirmations_per_commitment =
self.config.min_soft_confirmations_per_commitment;
Expand Down Expand Up @@ -623,7 +622,10 @@ where
soft_confirmation_hashes,
)?;

debug!("Sequencer: submitting commitment: {:?}", commitment);
debug!(
"Sequencer: submitting commitment for L2 range {}-{}",
commitment.l2_start_block_number, commitment.l2_end_block_number
);

let blob = borsh::to_vec(&DaData::SequencerCommitment(commitment.clone()))
.map_err(|e| anyhow!(e))?;
Expand All @@ -645,8 +647,6 @@ where
anyhow!("Sequencer: Failed to set last sequencer commitment L2 height")
})?;

debug!("Commitment info: {:?}", commitment_info);

let l2_start = l2_range_to_submit.start().0 as u32;
let l2_end = l2_range_to_submit.end().0 as u32;
if let Some(db_config) = self.config.db_config.clone() {
Expand Down

0 comments on commit 58aed5f

Please sign in to comment.