From 99e369ff981214784226a121230427c6f3b74d20 Mon Sep 17 00:00:00 2001 From: qinglin89 <316032931@qq.com> Date: Wed, 2 Nov 2022 22:56:50 +0800 Subject: [PATCH] miner: disable enforceTip when get txs from txpool --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index dca827f6d6..32d8dbd72f 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1109,7 +1109,7 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) { func (w *worker) fillTransactions(interrupt *int32, env *environment) { // Split the pending transactions into locals and remotes // Fill the block with all available pending transactions. - pending := w.eth.TxPool().Pending(true) + pending := w.eth.TxPool().Pending(false) localTxs, remoteTxs := make(map[common.Address]types.Transactions), pending for _, account := range w.eth.TxPool().Locals() { if txs := remoteTxs[account]; len(txs) > 0 {