Skip to content

Commit

Permalink
cmd/evm: add blob fee
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Sep 12, 2023
1 parent 9aca7ea commit f4ea54d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/evm/internal/t8ntool/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
vmContext.ExcessBlobGas = &excessBlobGas
}
}
if vmContext.ExcessBlobGas != nil {
vmContext.BlobFee = eip4844.CalcBlobFee(*vmContext.ExcessBlobGas)
}
// If DAO is supported/enabled, we need to handle it here. In geth 'proper', it's
// done in StateProcessor.Process(block, ...), right before transactions are applied.
if chainConfig.DAOForkSupport &&
Expand Down

0 comments on commit f4ea54d

Please sign in to comment.