Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 17, 2025
1 parent edb214b commit 8c7a284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/host/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ impl ExecutionStats {
let total_gas_used: u64 = block_data.iter().map(|b| b.gas_used).sum();

Self {
// The first block is not included in the cycles, or in the gas used.
// The "block data" does not include the first block (as it's not executed), so we need to subtract 1 to give the user back the
// block corresponding to the blockhash they're proving from.
batch_start: block_data[0].block_number - 1,
batch_end: block_data[block_data.len() - 1].block_number,
total_instruction_count: report.total_instruction_count(),
Expand Down

0 comments on commit 8c7a284

Please sign in to comment.