fix(txpool): basefee requires mintip to not be nil. (#297)

This commit is contained in:
johntaiko 2024-08-08 14:40:39 +08:00 committed by GitHub
parent 882a6cd329
commit 6315fd4969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ func (w *worker) BuildTransactionsLists(
}
// Check if tx pool is empty at first.
if len(w.eth.TxPool().Pending(txpool.PendingFilter{BaseFee: uint256.MustFromBig(baseFee), OnlyPlainTxs: true})) == 0 {
if len(w.eth.TxPool().Pending(txpool.PendingFilter{MinTip: uint256.NewInt(minTip), BaseFee: uint256.MustFromBig(baseFee), OnlyPlainTxs: true})) == 0 {
return txsLists, nil
}