diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 4928b5afc..056b1ebe8 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -549,7 +549,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()