From 322ec7f9973d1d7ecac05b2cba1b38910b938663 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 15 Dec 2025 16:33:56 +0800 Subject: [PATCH] core/txpool : fix map size avoid resizing #27221 (#1861) --- core/txpool/txpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index fb62d50872..8c606d0cda 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -568,7 +568,7 @@ func (pool *TxPool) Pending(enforceTips bool) map[common.Address]types.Transacti pool.mu.Lock() defer pool.mu.Unlock() - pending := make(map[common.Address]types.Transactions) + pending := make(map[common.Address]types.Transactions, len(pool.pending)) for addr, list := range pool.pending { txs := list.Flatten()