Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
check if per_program_timings of execute_timings before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Aug 10, 2021
1 parent 70ebca5 commit 6e93fca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2028,9 +2028,11 @@ impl ReplayStage {
}

// send accumulated excute-timings to cost_update_service
cost_update_sender
.send(execute_timings)
.unwrap_or_else(|err| warn!("cost_update_sender failed: {:?}", err));
if !execute_timings.details.per_program_timings.is_empty() {
cost_update_sender
.send(execute_timings)
.unwrap_or_else(|err| warn!("cost_update_sender failed: {:?}", err));
}

inc_new_counter_info!("replay_stage-replay_transactions", tx_count);
did_complete_bank
Expand Down

0 comments on commit 6e93fca

Please sign in to comment.