Cleanup CWalletTx::GetAmounts() for clarity. No-op.
This commit is contained in:
parent
c47c1e9363
commit
f686388991
|
@ -1856,9 +1856,8 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
|
||||||
|
|
||||||
// Compute fee if we sent this transaction.
|
// Compute fee if we sent this transaction.
|
||||||
if (isFromMyTaddr) {
|
if (isFromMyTaddr) {
|
||||||
CAmount nValueOut = GetValueOut(); // transparent outputs plus all vpub_old
|
CAmount nValueOut = GetValueOut(); // transparent outputs plus all Sprout vpub_old and negative Sapling valueBalance
|
||||||
CAmount nValueIn = 0;
|
CAmount nValueIn = GetShieldedValueIn();
|
||||||
nValueIn += GetShieldedValueIn();
|
|
||||||
nFee = nDebit - nValueOut + nValueIn;
|
nFee = nDebit - nValueOut + nValueIn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue