diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2010-12-16 13:24:47 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2010-12-16 13:24:47 -0500 |
commit | 825076061772d4c8105f9ef22f1397b318eebff7 (patch) | |
tree | 3ed887f51974f157477c5b538aa5992703cefa87 /rpc.cpp | |
parent | 55c43da5d8606f7abd22ee7af290cf10bb865f6a (diff) | |
parent | 59948a6e1cdc55401d712c731be8558838a525fc (diff) |
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'rpc.cpp')
-rw-r--r-- | rpc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -80,6 +80,7 @@ void WalletTxToJSON(const CWalletTx& wtx, Object& entry) { entry.push_back(Pair("confirmations", wtx.GetDepthInMainChain())); entry.push_back(Pair("txid", wtx.GetHash().GetHex())); + entry.push_back(Pair("time", wtx.GetTxTime())); foreach(const PAIRTYPE(string,string)& item, wtx.mapValue) entry.push_back(Pair(item.first, item.second)); } @@ -245,6 +246,8 @@ Value setgenerate(const Array& params, bool fHelp) CWalletDB().WriteSetting("fLimitProcessors", fLimitProcessors); if (nGenProcLimit != -1) CWalletDB().WriteSetting("nLimitProcessors", nLimitProcessors = nGenProcLimit); + if (nGenProcLimit == 0) + fGenerate = false; } GenerateBitcoins(fGenerate); @@ -891,10 +894,10 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe CRITICAL_BLOCK(cs_mapAddressBook) { foreach(const PAIRTYPE(string, int64)& r, listReceived) - if (mapAddressBook.count(r.first) && (fAllAccounts || r.first == strAccount)) + if (mapAddressBook.count(r.first) && (fAllAccounts || mapAddressBook[r.first] == strAccount)) { Object entry; - entry.push_back(Pair("account", r.first)); + entry.push_back(Pair("account", mapAddressBook[r.first])); entry.push_back(Pair("category", "receive")); entry.push_back(Pair("amount", ValueFromAmount(r.second))); WalletTxToJSON(wtx, entry); |