mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Refactor: move GetValueIn(tx) to tx.GetValueIn()
GetValueIn makes more sense as a CTransaction member.
This commit is contained in:
parent
98c7c8fd1d
commit
0733c1bde6
10 changed files with 33 additions and 36 deletions
|
|
@ -1673,7 +1673,7 @@ Value gettransaction(const Array& params, bool fHelp)
|
|||
int64_t nCredit = wtx.GetCredit();
|
||||
int64_t nDebit = wtx.GetDebit();
|
||||
int64_t nNet = nCredit - nDebit;
|
||||
int64_t nFee = (wtx.IsFromMe() ? GetValueOut(wtx) - nDebit : 0);
|
||||
int64_t nFee = (wtx.IsFromMe() ? wtx.GetValueOut() - nDebit : 0);
|
||||
|
||||
entry.push_back(Pair("amount", ValueFromAmount(nNet - nFee)));
|
||||
if (wtx.IsFromMe())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue