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.
This commit is contained in:
Roman Khimov 2020-09-10 15:20:04 +03:00
parent 7310e748e3
commit fc7ea6217d

View file

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