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

This commit is contained in:
Simon 2018-07-31 20:11:39 -07:00
parent c47c1e9363
commit f686388991
1 changed files with 2 additions and 3 deletions

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