mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "internal/ethapi: correctly calculate effective gas price (#28130)"
This reverts commit 664137285f.
This commit is contained in:
parent
9158de552f
commit
d9d36e30a8
1 changed files with 2 additions and 2 deletions
|
|
@ -1520,8 +1520,8 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
|
|||
func effectiveGasPrice(tx *types.Transaction, baseFee *big.Int) *big.Int {
|
||||
fee := tx.GasTipCap()
|
||||
fee = fee.Add(fee, baseFee)
|
||||
if tx.GasFeeCapIntCmp(fee) < 0 {
|
||||
return tx.GasFeeCap()
|
||||
if tx.GasTipCapIntCmp(fee) < 0 {
|
||||
return tx.GasTipCap()
|
||||
}
|
||||
return fee
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue