Skip to content

Commit

Permalink
core/txpool : fix map size avoid resizing (ethereum#27221)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored May 5, 2023
1 parent 79a57d4 commit ba09403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ba09403

Please sign in to comment.