From dc3f23c67c040a40901a99f3c5c8d9707c4a6f5a Mon Sep 17 00:00:00 2001 From: Balaji Arun Date: Wed, 17 May 2023 11:30:22 -0700 Subject: [PATCH] [consensus-only] fix gas_limit execution --- execution/executor/src/components/chunk_output.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/execution/executor/src/components/chunk_output.rs b/execution/executor/src/components/chunk_output.rs index fd6be269ec04a..b4fd421ec6262 100644 --- a/execution/executor/src/components/chunk_output.rs +++ b/execution/executor/src/components/chunk_output.rs @@ -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( + transactions: Vec, + state_view: &CachedStateView, + _maybe_gas_limit: Option, + ) -> Result> { + Self::execute_block::(transactions, state_view) + } } pub fn update_counters_for_processed_chunk(