From 0a2d652c24165c8f4a8999b1b9ff09e60f526acf Mon Sep 17 00:00:00 2001 From: Naman Garg <0708ng@gmail.com> Date: Fri, 19 Jul 2024 16:44:20 +0530 Subject: [PATCH] misc: update comment --- bolt-sidecar/src/state/execution.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bolt-sidecar/src/state/execution.rs b/bolt-sidecar/src/state/execution.rs index 34a51608f..c5aff4f76 100644 --- a/bolt-sidecar/src/state/execution.rs +++ b/bolt-sidecar/src/state/execution.rs @@ -204,7 +204,7 @@ impl ExecutionState { return Err(ValidationError::ChainIdMismatch); } - // Check if there is room for more commitments and gas in the block template + // Check if there is room for more commitments if let Some(template) = self.get_block_template(target_slot) { if template.transactions_len() >= self.max_commitments_per_slot.get() { return Err(ValidationError::MaxCommitmentsReachedForSlot( @@ -214,6 +214,7 @@ impl ExecutionState { } } + // Check if the committed gas exceeds the maximum if let Some(template) = self.get_block_template(target_slot) { // Check if the committed gas exceeds the maximum if template.committed_gas() + req.tx.gas_limit()