From 34672bb6407e20ff53f9071213bcbf5d5c1c68ef Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "miner: initialize maps with capacity (#27228)" This reverts commit 182fc72b0e5a15cfa60e69d6e8fc0850379a15e8. --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 936a9e74a5..9afc65ab1d 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -628,7 +628,7 @@ func (w *worker) mainLoop() { if gp := w.current.gasPool; gp != nil && gp.Gas() < params.TxGas { continue } - txs := make(map[common.Address]types.Transactions, len(ev.Txs)) + txs := make(map[common.Address]types.Transactions) for _, tx := range ev.Txs { acc, _ := types.Sender(w.current.signer, tx) txs[acc] = append(txs[acc], tx)