From fc7ea6217dcad60c6ac3dbafa607e09c3976565b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 10 Sep 2020 15:20:04 +0300 Subject: [PATCH] mempool: avoid reassigning utilityBalanceAndFees value It's not needed, we're either creating a new one and assigning it 6 lines above or we're changing already existing big.Int via a pointer, so no update is needed. --- pkg/core/mempool/mem_pool.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/core/mempool/mem_pool.go b/pkg/core/mempool/mem_pool.go index 9e82c6b25..31e34f4fb 100644 --- a/pkg/core/mempool/mem_pool.go +++ b/pkg/core/mempool/mem_pool.go @@ -121,7 +121,6 @@ func (mp *Pool) tryAddSendersFee(tx *transaction.Transaction, feer Feer, needChe return false } senderFee.feeSum.Add(senderFee.feeSum, big.NewInt(tx.SystemFee+tx.NetworkFee)) - mp.fees[tx.Sender()] = senderFee return true }