diff options
| author | Jeff Garzik <[email protected]> | 2012-04-15 11:39:15 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-15 11:39:15 -0700 |
| commit | 5a701eb7ea16b87b56263996ee8e98ec89e2a3d8 (patch) | |
| tree | fe8a60dc3eeb26e62cf4531a98b29ed99bee90e9 /src/bitcoinrpc.cpp | |
| parent | Merge pull request #1084 from dooglus/validate_secret (diff) | |
| parent | fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] (diff) | |
| download | discoin-5a701eb7ea16b87b56263996ee8e98ec89e2a3d8.tar.xz discoin-5a701eb7ea16b87b56263996ee8e98ec89e2a3d8.zip | |
Merge pull request #1104 from laanwj/2012_04_clang
Enable and fix most compilation warnings
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 7c991144d..63c51ada8 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -796,8 +796,10 @@ Value getbalance(const Array& params, bool fHelp) list<pair<CBitcoinAddress, int64> > listSent; wtx.GetAmounts(allGeneratedImmature, allGeneratedMature, listReceived, listSent, allFee, strSentAccount); if (wtx.GetDepthInMainChain() >= nMinDepth) + { BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress,int64)& r, listReceived) nBalance += r.second; + } BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress,int64)& r, listSent) nBalance -= r.second; nBalance -= allFee; @@ -1228,6 +1230,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe // Received if (listReceived.size() > 0 && wtx.GetDepthInMainChain() >= nMinDepth) + { BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, int64)& r, listReceived) { string account; @@ -1245,6 +1248,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe ret.push_back(entry); } } + } } void AcentryToJSON(const CAccountingEntry& acentry, const string& strAccount, Array& ret) |