From 1664b7af0cc982651e21c7b4af48c0a4109604ab Mon Sep 17 00:00:00 2001 From: Andrei Kashin Date: Tue, 4 Apr 2023 10:59:33 +0100 Subject: [PATCH] Initialize compute usage with gas burnt --- runtime/runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/runtime/src/lib.rs b/runtime/runtime/src/lib.rs index ca4b697eef9..e4bc959a1e3 100644 --- a/runtime/runtime/src/lib.rs +++ b/runtime/runtime/src/lib.rs @@ -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(