mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
core/types: fix comment on EffectiveGasTip
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
c464cf2589
commit
8bd1d31872
1 changed files with 2 additions and 2 deletions
|
|
@ -354,8 +354,8 @@ func (tx *Transaction) GasTipCapIntCmp(other *big.Int) int {
|
|||
}
|
||||
|
||||
// EffectiveGasTip returns the effective miner gasTipCap for the given base fee.
|
||||
// Note: if the effective gasTipCap is negative, this method returns both error
|
||||
// the actual negative value, _and_ ErrGasFeeCapTooLow
|
||||
// Note: if the effective gasTipCap would be negative, this method
|
||||
// returns ErrGasFeeCapTooLow, and value is undefined.
|
||||
func (tx *Transaction) EffectiveGasTip(baseFee *big.Int) (*big.Int, error) {
|
||||
dst := new(uint256.Int)
|
||||
base := new(uint256.Int)
|
||||
|
|
|
|||
Loading…
Reference in a new issue