Skip to content

Commit bd57f35

Browse files
authored
core/txpool/blobpool: fix error message (#30247)
the validation process only checks for 'less than', which is inconsistent with the error output
1 parent bc95452 commit bd57f35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/txpool/blobpool/blobpool.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,11 +1155,11 @@ func (p *BlobPool) validateTx(tx *types.Transaction) error {
11551155
)
11561156
switch {
11571157
case tx.GasFeeCapIntCmp(minGasFeeCap.ToBig()) < 0:
1158-
return fmt.Errorf("%w: new tx gas fee cap %v <= %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.GasFeeCap(), prev.execFeeCap, p.config.PriceBump)
1158+
return fmt.Errorf("%w: new tx gas fee cap %v < %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.GasFeeCap(), prev.execFeeCap, p.config.PriceBump)
11591159
case tx.GasTipCapIntCmp(minGasTipCap.ToBig()) < 0:
1160-
return fmt.Errorf("%w: new tx gas tip cap %v <= %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.GasTipCap(), prev.execTipCap, p.config.PriceBump)
1160+
return fmt.Errorf("%w: new tx gas tip cap %v < %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.GasTipCap(), prev.execTipCap, p.config.PriceBump)
11611161
case tx.BlobGasFeeCapIntCmp(minBlobGasFeeCap.ToBig()) < 0:
1162-
return fmt.Errorf("%w: new tx blob gas fee cap %v <= %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.BlobGasFeeCap(), prev.blobFeeCap, p.config.PriceBump)
1162+
return fmt.Errorf("%w: new tx blob gas fee cap %v < %v queued + %d%% replacement penalty", txpool.ErrReplaceUnderpriced, tx.BlobGasFeeCap(), prev.blobFeeCap, p.config.PriceBump)
11631163
}
11641164
}
11651165
return nil

0 commit comments

Comments
 (0)