This commit is contained in:
alex.sharov 2021-08-21 19:14:56 +07:00
parent a12556da38
commit c8cfd689d2

View File

@ -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