Skip to content

Commit

Permalink
Better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Jul 30, 2024
1 parent f39cb73 commit b7d3bb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/sequencer/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,14 @@ where

#[instrument(level = "trace", skip(self), err, ret)]
pub async fn resubmit_pending_commitments(&mut self) -> anyhow::Result<()> {
info!("Resubmitting pending commitments");

let pending_db_commitments = self.ledger_db.get_pending_commitments_l2_range()?;
debug!("Pending db commitments: {:?}", pending_db_commitments);

let pending_mempool_commitments = self.get_pending_mempool_commitments().await;
debug!(
"Pending mempool commitments: {:?}",
"Commitments that are already in DA mempool: {:?}",
pending_mempool_commitments
);

Expand All @@ -638,7 +640,10 @@ where
let mined_commitments = self
.get_mined_commitments_from(last_commitment_l1_height)
.await?;
debug!("Unsaved mined commitments: {:?}", mined_commitments);
debug!(
"Commitments that are already mined by DA: {:?}",
mined_commitments
);

let mut pending_commitments_to_remove = vec![];
pending_commitments_to_remove.extend(pending_mempool_commitments);
Expand Down

0 comments on commit b7d3bb4

Please sign in to comment.