core/types: fix comment on EffectiveGasTip

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-08-20 11:48:45 +02:00 committed by MariusVanDerWijden
parent c464cf2589
commit 8bd1d31872

View file

@ -354,8 +354,8 @@ func (tx *Transaction) GasTipCapIntCmp(other *big.Int) int {
} }
// EffectiveGasTip returns the effective miner gasTipCap for the given base fee. // EffectiveGasTip returns the effective miner gasTipCap for the given base fee.
// Note: if the effective gasTipCap is negative, this method returns both error // Note: if the effective gasTipCap would be negative, this method
// the actual negative value, _and_ ErrGasFeeCapTooLow // returns ErrGasFeeCapTooLow, and value is undefined.
func (tx *Transaction) EffectiveGasTip(baseFee *big.Int) (*big.Int, error) { func (tx *Transaction) EffectiveGasTip(baseFee *big.Int) (*big.Int, error) {
dst := new(uint256.Int) dst := new(uint256.Int)
base := new(uint256.Int) base := new(uint256.Int)