mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
core/types: reduce allocations
This commit is contained in:
parent
d2176f463b
commit
f8125260de
1 changed files with 2 additions and 2 deletions
|
|
@ -365,9 +365,9 @@ func (tx *Transaction) EffectiveGasTip(baseFee *big.Int) (*big.Int, error) {
|
|||
}
|
||||
gasFeeCap = gasFeeCap.Sub(gasFeeCap, baseFee)
|
||||
|
||||
gasTipCap := tx.GasTipCap()
|
||||
gasTipCap := tx.inner.gasTipCap()
|
||||
if gasTipCap.Cmp(gasFeeCap) < 0 {
|
||||
return gasTipCap, err
|
||||
return gasFeeCap.Set(gasTipCap), err
|
||||
}
|
||||
return gasFeeCap, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue