Skip to content

Commit 4027770

Browse files
MariusVanDerWijdenjagdeep sidhu
authored andcommitted
core: fixed stale comment in txlist (ethereum#23825)
1 parent bad3269 commit 4027770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tx_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ func (l *txList) Add(tx *types.Transaction, priceBump uint64) (bool, *types.Tran
295295
thresholdFeeCap := aFeeCap.Div(aFeeCap, b)
296296
thresholdTip := aTip.Div(aTip, b)
297297

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

0 commit comments

Comments
 (0)