mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
fixed tiny glitch and improved readability like laanwj suggested
This commit is contained in:
parent
d7d5d23b77
commit
a5c6c5d6df
4 changed files with 40 additions and 52 deletions
|
|
@ -811,7 +811,8 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
|
|||
// Sent/received.
|
||||
BOOST_FOREACH(const CTxOut& txout, vout)
|
||||
{
|
||||
bool fIsMine;
|
||||
isminetype fIsMine = pwallet->IsMine(txout);
|
||||
|
||||
// Only need to handle txouts if AT LEAST one of these is true:
|
||||
// 1) they debit from us (sent)
|
||||
// 2) the output is to us (received)
|
||||
|
|
@ -820,9 +821,8 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
|
|||
// Don't report 'change' txouts
|
||||
if (pwallet->IsChange(txout))
|
||||
continue;
|
||||
fIsMine = (pwallet->IsMine(txout) & filter);
|
||||
}
|
||||
else if (!(fIsMine = (pwallet->IsMine(txout) & filter)))
|
||||
else if (!(fIsMine & filter))
|
||||
continue;
|
||||
|
||||
// In either case, we need to get the destination address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue