Skip to content

Commit

Permalink
Revert "core: fix calculation of blob gasprice in tx receipt (ethereu…
Browse files Browse the repository at this point in the history
…m#28082)"

This reverts commit 7cf8bf9.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent 48d2207 commit 38f7b94
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/misc"
"github.com/ethereum/go-ethereum/consensus/misc/eip4844"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
Expand Down Expand Up @@ -136,10 +135,8 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta
receipt.TxHash = tx.Hash()
receipt.GasUsed = result.UsedGas

if tx.Type() == types.BlobTxType {
receipt.BlobGasUsed = uint64(len(tx.BlobHashes()) * params.BlobTxBlobGasPerBlob)
receipt.BlobGasPrice = eip4844.CalcBlobFee(*evm.Context.ExcessBlobGas)
}
receipt.BlobGasUsed = uint64(len(tx.BlobHashes()) * params.BlobTxBlobGasPerBlob)
receipt.BlobGasPrice = tx.BlobGasFeeCap()

// If the transaction created a contract, store the creation address in the receipt.
if msg.To == nil {
Expand Down

0 comments on commit 38f7b94

Please sign in to comment.