aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
AgeCommit message (Collapse)Author
2011-05-08Initial commit of changes to make JSON-RPC HTTP headers case-insensitive, as ↵Forrest Voight
per RFC 2616
2011-04-18getbalance '*' was ignoring minconf param.Gavin Andresen
2011-04-15Merge branch 'localefix'Gavin Andresen
2011-04-15Set time locale to POSIX in rfc1123Time so weekday/months in http responses ↵Gavin Andresen
are correct.
2011-04-15Send/return full bitcoin version string in Server and User-Agent HTTP headersJeff Garzik
2011-04-12Merge branch 'listimmature' of /Users/gavin/src/gavin_btcGavin Andresen
2011-04-08rfc1123Time: increase buffer size for time stringJeff Garzik
Make sure we can accomodate all possibilities.
2011-04-05Report immature coinbase transactions in listtransactionsGavin Andresen
Report coin generation transactions as 'category':'immature' until they have 120 confirmations (when they are reported as 'category':'generate', as before). If the block they are in is not part of the main chain (you lost a 'block race'), then they are reported as 'category':'orphan' (with 0 confirmations).
2011-04-05Fixed issue 76 -- RPC error where addresses from addressbook's sending tab ↵Eric Swanson
appear in listaccounts
2011-04-05RPC sendmany must acquire cs_main lockJeff Garzik
2011-04-04Fix deadlocks in setaccount, sendfrom RPC callsJeff Garzik
SendMoney*() now requires caller to acquire cs_main. GetAccountAddress() now requires caller to acquire cs_main, cs_mapWallet. Ordering is intended to match these two callchains[1]: 1. CRITICAL_BLOCK(cs_main) ProcessMessage(pfrom, strCommand, vMsg) AddToWalletIfMine() AddToWallet(wtx) CRITICAL_BLOCK(cs_mapWallet) 2. CRITICAL_BLOCK(cs_main) ProcessMessage(pfrom, strCommand, vMsg) AddToWalletIfMine() AddToWallet(wtx) CRITICAL_BLOCK(cs_mapWallet) walletdb.WriteName(PubKeyToAddress(vchDefaultKey), "") CRITICAL_BLOCK(cs_mapAddressBook) Spotted by ArtForz. Additional deadlock fixes by Gavin. [1] http://www.bitcoin.org/smf/index.php?topic=4904.msg71897#msg71897
2011-03-13sendmany RPC command, to send to multiple recipients in one transaction.Gavin Andresen
2011-03-05throw JSONRPCError(-5, "Invalid bitcoin address") instead.Matt Corallo
2011-03-05setaccount should return if an invalid address is provided.Matt Corallo
This prevents setaccount from creating new accounts which do not have any addresses.
2011-02-23Do not round input amounts; allow RPC full precision.Gavin Andresen
2011-02-23Use ValueFromAmount consistentlyGavin Andresen
2011-02-23Merge branch 'master' of https://github.com/sandos/bitcoin into sandos-mastertcatm
2011-02-10Visual C++ compatibility fixesGavin Andresen
2011-02-10Set SO_REUSEADDR for JSON-RPC portsandos
2011-01-20Reconcile getbalance and listaccounts 0 in the shared-wallet caseGavin Andresen
If you copied your wallet and used it on two different machines, the balance reported by getbalance and the sum(listaccounts) could disagree, because you might receive payments for an address that is in your wallet but not your address book. Now all such transactions are credited to the default empty-string account.
2011-01-19ReacceptWalletTransactions bugfixGavin Andresen
Fix two bugs that can happen if you copy your wallet to another machine and perform transactions on both. First, ReacceptWalletTransactions would notice if the other wallet spent coins, and would correctly mark the receiving transaction spent. However, it did not add the spending transaction to the wallet. Now it does. Second, account balances could get out of sync with 'getbalance' because coins received by the other copy of the wallet were not necessarily detected. Now ReacceptWalletTransactions will scan the entire blockchain for transactions that should be in the wallet if it runs across a 'spent in the other wallet' transaction. Finally, there was a small bug in the accounts getbalance code-- generated coins with between 100 and 119 confirmations were not being counted in the balance of account "".
2011-01-18Merge branch 'listaccountsbug' of ↵Gavin Andresen
https://github.com/gavinandresen/bitcoin-git into integration
2011-01-18Merge branch 'gettransaction' of ↵Gavin Andresen
https://github.com/gavinandresen/bitcoin-git into integration
2011-01-13Fix setaccount/getaccountaddress interaction bugGavin Andresen
See https://github.com/bitcoin/bitcoin/issues#issue/29
2011-01-10Fix so listaccounts with minconf works.Gavin Andresen
2011-01-07Add account/address details to gettransaction outputGavin Andresen
2011-01-05Add time to category:move transactions.Gavin Andresen
2010-12-21Add address to listtransactions outputGavin Andresen
2010-12-17Missed a int64_t cast when I added transaction time outputgavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@205 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-16listtransactions was reporting address instead of account for 'receive'gavinandresen
setgenerate true 0 is now the same as setgenerate false And return transaction time git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@204 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-16New RPC command: listaccounts. New RPC setting -rpctimeout. And ↵gavinandresen
listtransactions '*' git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@203 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-12corrections_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@200 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-12added some DoS limits, removed safe modes_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@199 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-03All boolean options/flags now work the same way.gavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-30JSON methods: listtransactions, gettransaction, move, sendfrom and ↵gavinandresen
getbalance <account> git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@193 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-25-- version 0.3.17 releasev0.3.17s_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@191 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-25still working on account-based commands getbalance, move and sendfrom, ↵s_nakamoto
they're only for testing for now git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@190 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-23new getworks_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-22Depracate "label" API, replacing with accountgavinandresen
New RPC methods: move, sendfrom Change to getbalance (now takes optional [account] argument) Renamed methods with "label" in their names. sendtoaddress returns hexadecimal transaction ID instead of "sent". git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@188 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-10Add paytxfee to getinfo outputgavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@178 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-23bugfixes from Dean Gores,s_nakamoto
addr system changes, make sure no gen before block 74000 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@173 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-22testnet and keypoololdest added to RPC getinfo output. And RPC now sends ↵gavinandresen
proper HTTP Date headers. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@172 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-20validateaddress RPC commandgavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@169 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-11-rpcssl=1 option, allowing secure HTTPS JSON-RPC connections on OSX/Unix.gavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@165 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-09key pool for safer wallet backups_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@163 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-09-15config option -rpcallowip= to accept json-rpc connections from another machines_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@155 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-09-06Gavin Andresen: json-rpc return standard error objects with error code numbers,s_nakamoto
json-rpc command line client return exit code, added rpc backupwallet command git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@147 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-29propset svn:eol-style natives_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-25change switch name to -disablesafemodes_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@144 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-25more rpc methods allowed in safe modes_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@143 1a98c847-1fd6-4fd8-948a-caf3550aa51b