From c8cfd689d26c34fe7431a39f9abafa6d281e75fb Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 21 Aug 2021 19:14:56 +0700 Subject: [PATCH] save --- txpool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txpool/pool.go b/txpool/pool.go index 4cef9b59b..803f5a1fb 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -648,7 +648,7 @@ func onNewBlock(senders *SendersCache, unwindTxs TxSlots, minedTxs []*TxSlot, pr log.Info("remove mined", "removed", j, "minedTxsLen", len(minedTxs)) } - changedSenders := map[uint64]*senderInfo{} + changedSenders := make(map[uint64]*senderInfo, len(unwindTxs.txs)/4) // This can be thought of a reverse operation from the one described before. // When a block that was deemed "the best" of its height, is no longer deemed "the best", the