Skip to content

Commit

Permalink
misc: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
namn-grg committed Jul 19, 2024
1 parent 75f4dfe commit 0a2d652
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bolt-sidecar/src/state/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<C: StateFetcher> ExecutionState<C> {
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(
Expand All @@ -214,6 +214,7 @@ impl<C: StateFetcher> ExecutionState<C> {
}
}

// 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()
Expand Down

0 comments on commit 0a2d652

Please sign in to comment.