Cleanup CWalletTx::GetAmounts() for clarity. No-op.

This commit is contained in:
Simon
2018-08-08 12:03:10 -07:00
parent c47c1e9363
commit f686388991
+2 -3
View File
@@ -1856,9 +1856,8 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
// Compute fee if we sent this transaction.
if (isFromMyTaddr) {
CAmount nValueOut = GetValueOut(); // transparent outputs plus all vpub_old
CAmount nValueIn = 0;
nValueIn += GetShieldedValueIn();
CAmount nValueOut = GetValueOut(); // transparent outputs plus all Sprout vpub_old and negative Sapling valueBalance
CAmount nValueIn = GetShieldedValueIn();
nFee = nDebit - nValueOut + nValueIn;
}