Skip to content

Commit

Permalink
add excess blob gas
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Sep 17, 2023
1 parent 3c140f0 commit 0d4cb44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/payload/builder/src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ impl PayloadBuilderAttributes {
basefee: U256::from(
parent.next_block_base_fee(chain_spec.base_fee_params).unwrap_or_default(),
),
// calculate excess gas based on parent block's blob gas usage
excess_blob_gas: parent.next_block_blob_fee().map(|fee| fee.saturating_to()),
};

(cfg, block_env)
Expand Down

0 comments on commit 0d4cb44

Please sign in to comment.