Skip to content

Commit

Permalink
core: fixed stale comment in txlist (ethereum#23825)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden authored and zzyalbert committed Nov 26, 2021
1 parent ed13073 commit 8de35da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tx_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ func (l *txList) Add(tx *types.Transaction, priceBump uint64) (bool, *types.Tran
thresholdFeeCap := aFeeCap.Div(aFeeCap, b)
thresholdTip := aTip.Div(aTip, b)

// Have to ensure that either the new fee cap or tip is higher than the
// We have to ensure that both the new fee cap and tip are higher than the
// old ones as well as checking the percentage threshold to ensure that
// this is accurate for low (Wei-level) gas price replacements
// this is accurate for low (Wei-level) gas price replacements.
if tx.GasFeeCapIntCmp(thresholdFeeCap) < 0 || tx.GasTipCapIntCmp(thresholdTip) < 0 {
return false, nil
}
Expand Down

0 comments on commit 8de35da

Please sign in to comment.