Browse Source

Fixed error in 'getbalance' when using watchonly addresses.

0.10
JaSK 10 years ago
parent
commit
d512534cd7
  1. 2
      src/wallet.cpp

2
src/wallet.cpp

@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived, @@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
listSent.push_back(make_pair(address, txout.nValue));
// If we are receiving the output, add it as a "received" entry
if (fIsMine)
if (fIsMine & filter)
listReceived.push_back(make_pair(address, txout.nValue));
}

Loading…
Cancel
Save