From 01b78d47897cbdffe5fbe72cbf22979b7c7329b6 Mon Sep 17 00:00:00 2001 From: Leon <316032931@qq.com> Date: Mon, 7 Nov 2022 10:42:05 +0800 Subject: [PATCH] miner: disable enforceTip when get txs from txpool (#1166) --- 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 {