mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 23:25:22 +00:00
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:
parent
7310e748e3
commit
fc7ea6217d
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue