diff options
| author | JaSK <[email protected]> | 2014-04-29 19:39:01 +0200 |
|---|---|---|
| committer | JaSK <[email protected]> | 2014-07-02 15:48:39 +0200 |
| commit | a5c6c5d6df887764ac07664aae842234c19bbf8d (patch) | |
| tree | 5971199c88c56c9e8ce7a86e5162e7afce3ce7f4 /src/wallet.cpp | |
| parent | Added argument to listtransactions and listsinceblock to include watchonly ad... (diff) | |
| download | discoin-a5c6c5d6df887764ac07664aae842234c19bbf8d.tar.xz discoin-a5c6c5d6df887764ac07664aae842234c19bbf8d.zip | |
fixed tiny glitch and improved readability like laanwj suggested
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 3c9aa3306..4b480321a 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -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 |