Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Fix payload builder block gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Oct 16, 2023
1 parent 0f2ea91 commit d4b0fcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/payload/basic/src/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ where

debug!(target: "payload_builder", parent_hash = ?parent_block.hash, parent_number = parent_block.number, "building new payload");
let mut cumulative_gas_used = 0;
let block_gas_limit: u64 = initialized_block_env.gas_limit.try_into().unwrap_or(u64::MAX);
let block_gas_limit: u64 = attributes
.gas_limit
.unwrap_or(initialized_block_env.gas_limit.try_into().unwrap_or(u64::MAX));
let base_fee = initialized_block_env.basefee.to::<u64>();

let mut executed_txs = Vec::new();
Expand Down

0 comments on commit d4b0fcf

Please sign in to comment.