Skip to content

Commit

Permalink
[consensus-only] fix gas_limit execution (#8248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun authored May 17, 2023
1 parent 871375b commit 3277100
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions execution/executor/src/components/chunk_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ impl ChunkOutput {
};
Ok(transaction_outputs)
}

/// In consensus-only mode, we do not care about gas limits.
#[cfg(feature = "consensus-only-perf-test")]
fn execute_block_with_gas_limit<V: VMExecutor>(
transactions: Vec<Transaction>,
state_view: &CachedStateView,
_maybe_gas_limit: Option<u64>,
) -> Result<Vec<TransactionOutput>> {
Self::execute_block::<V>(transactions, state_view)
}
}

pub fn update_counters_for_processed_chunk(
Expand Down

0 comments on commit 3277100

Please sign in to comment.