feat(worker): disable enforceTips when fetching pending transactions (#947)

This commit is contained in:
HAOYUatHZ 2024-07-31 21:23:00 +08:00 committed by GitHub
parent e9fec8fcb4
commit f6a030ccad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1426,7 +1426,7 @@ func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment) err
}
tidyPendingStart := time.Now()
pending := w.eth.TxPool().PendingWithMax(true, w.config.MaxAccountsNum)
pending := w.eth.TxPool().PendingWithMax(false, w.config.MaxAccountsNum)
// Split the pending transactions into locals and remotes.
localTxs, remoteTxs := make(map[common.Address][]*txpool.LazyTransaction), pending