Skip to content

Commit

Permalink
Initialize compute usage with gas burnt
Browse files Browse the repository at this point in the history
  • Loading branch information
aborg-dev committed Apr 4, 2023
1 parent fbb0e2d commit 1664b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ impl Runtime {
// charge any gas for refund receipts, we still count the gas use towards the block gas
// limit
let mut total_gas_burnt = gas_used_for_migrations;
let mut total_compute_usage = gas_used_for_migrations;
let mut total_compute_usage = total_gas_burnt;

for signed_transaction in transactions {
let (receipt, outcome_with_id) = self.process_transaction(
Expand Down

0 comments on commit 1664b7a

Please sign in to comment.