Skip to content

Commit

Permalink
cleanup debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
daltoncoder committed May 29, 2024
1 parent a957416 commit 6137fcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/consensus/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ impl<Q: SyncQueryRunnerInterface, NE: Emitter> ExecutionState for Execution<Q, N
let current_epoch = self.query_runner.get_current_epoch();

let sub_dag_index = consensus_output.sub_dag.sub_dag_index;
println!("subdag index: {sub_dag_index}");

let batch_payload: Vec<Vec<u8>> = consensus_output
.batches
.into_iter()
.filter_map(|(cert, batch)| {
// Skip over the ones that have a different epoch. Shouldnt ever happen
// Skip over the ones that have a different epoch. Shouldnt ever happen besides an
// edge case towards the end of an epoch
if cert.epoch() != current_epoch {
error!("we recieved a consensus cert from an epoch we are not on");
None
Expand Down

0 comments on commit 6137fcc

Please sign in to comment.