aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* directory re-organization (keeps the old build system)Jaromil2011-04-231-2184/+0
| | | | | | | | | | | | | | | | | | | there is no internal modification of any file in this commit files are moved into directories according to established standards in sourcecode distribution; these directories contain: src - Files that are used in constructing the executable binaries, but are not installed. doc - Files in HTML and text format that document usage, quirks of the implementation, and contributor checklists. locale - Files that contain human language translation of strings used in the program contrib - Files contributed from distributions or other third party implementing scripts and auxiliary programs
* getbalance '*' was ignoring minconf param.Gavin Andresen2011-04-181-11/+10
|
* Merge branch 'localefix'Gavin Andresen2011-04-151-1/+4
|\
| * Set time locale to POSIX in rfc1123Time so weekday/months in http responses ↵Gavin Andresen2011-04-151-1/+4
| | | | | | | | are correct.
* | Send/return full bitcoin version string in Server and User-Agent HTTP headersJeff Garzik2011-04-151-4/+5
|/
* Merge branch 'listimmature' of /Users/gavin/src/gavin_btcGavin Andresen2011-04-121-12/+20
|\
| * Report immature coinbase transactions in listtransactionsGavin Andresen2011-04-051-12/+20
| | | | | | | | | | 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).
* | rfc1123Time: increase buffer size for time stringJeff Garzik2011-04-081-1/+1
|/ | | | Make sure we can accomodate all possibilities.
* Fixed issue 76 -- RPC error where addresses from addressbook's sending tab ↵Eric Swanson2011-04-051-2/+5
| | | | appear in listaccounts
* RPC sendmany must acquire cs_main lockJeff Garzik2011-04-051-0/+1
|
* Fix deadlocks in setaccount, sendfrom RPC callsJeff Garzik2011-04-041-34/+48
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* sendmany RPC command, to send to multiple recipients in one transaction.Gavin Andresen2011-03-131-0/+73
|
* throw JSONRPCError(-5, "Invalid bitcoin address") instead.Matt Corallo2011-03-051-1/+1
|
* setaccount should return if an invalid address is provided.Matt Corallo2011-03-051-0/+6
| | | | This prevents setaccount from creating new accounts which do not have any addresses.
* Do not round input amounts; allow RPC full precision.Gavin Andresen2011-02-231-1/+1
|
* Use ValueFromAmount consistentlyGavin Andresen2011-02-231-8/+8
|
* Merge branch 'master' of https://github.com/sandos/bitcoin into sandos-mastertcatm2011-02-231-0/+2
|\
| * Set SO_REUSEADDR for JSON-RPC portsandos2011-02-101-0/+2
| |
* | Visual C++ compatibility fixesGavin Andresen2011-02-101-3/+3
|/
* Reconcile getbalance and listaccounts 0 in the shared-wallet caseGavin Andresen2011-01-201-0/+8
| | | | 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.
* ReacceptWalletTransactions bugfixGavin Andresen2011-01-191-0/+24
| | | | | | | | | | | | | | | | | 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 "".
* Merge branch 'listaccountsbug' of ↵Gavin Andresen2011-01-181-3/+3
|\ | | | | | | https://github.com/gavinandresen/bitcoin-git into integration
| * Fix so listaccounts with minconf works.Gavin Andresen2011-01-101-3/+3
| |
* | Merge branch 'gettransaction' of ↵Gavin Andresen2011-01-181-6/+14
|\| | | | | | | https://github.com/gavinandresen/bitcoin-git into integration
| * Add account/address details to gettransaction outputGavin Andresen2011-01-071-6/+14
| |
* | Fix setaccount/getaccountaddress interaction bugGavin Andresen2011-01-131-10/+30
|/ | | | See https://github.com/bitcoin/bitcoin/issues#issue/29
* Add time to category:move transactions.Gavin Andresen2011-01-051-0/+1
|
* Add address to listtransactions outputGavin Andresen2010-12-211-15/+29
|
* Missed a int64_t cast when I added transaction time outputgavinandresen2010-12-171-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@205 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* listtransactions was reporting address instead of account for 'receive'gavinandresen2010-12-161-2/+5
| | | | | | | | | 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
* New RPC command: listaccounts. New RPC setting -rpctimeout. And ↵gavinandresen2010-12-161-100/+197
| | | | | | listtransactions '*' git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@203 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* corrections_nakamoto2010-12-121-0/+30
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@200 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* added some DoS limits, removed safe modes_nakamoto2010-12-121-30/+0
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@199 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* All boolean options/flags now work the same way.gavinandresen2010-12-031-5/+5
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* JSON methods: listtransactions, gettransaction, move, sendfrom and ↵gavinandresen2010-11-301-79/+166
| | | | | | getbalance <account> git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@193 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* -- version 0.3.17 releasev0.3.17s_nakamoto2010-11-251-0/+4
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@191 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* still working on account-based commands getbalance, move and sendfrom, ↵s_nakamoto2010-11-251-0/+2
| | | | | | they're only for testing for now git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@190 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* new getworks_nakamoto2010-11-231-4/+115
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Depracate "label" API, replacing with accountgavinandresen2010-11-221-79/+341
| | | | | | | | | | | 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
* Add paytxfee to getinfo outputgavinandresen2010-11-101-0/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@178 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bugfixes from Dean Gores,s_nakamoto2010-10-231-0/+1
| | | | | | | 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
* testnet and keypoololdest added to RPC getinfo output. And RPC now sends ↵gavinandresen2010-10-221-6/+19
| | | | | | proper HTTP Date headers. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@172 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* validateaddress RPC commandgavinandresen2010-10-201-0/+23
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@169 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* -rpcssl=1 option, allowing secure HTTPS JSON-RPC connections on OSX/Unix.gavinandresen2010-10-111-11/+120
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@165 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* key pool for safer wallet backups_nakamoto2010-10-091-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@163 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* config option -rpcallowip= to accept json-rpc connections from another machines_nakamoto2010-09-151-6/+18
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@155 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen: json-rpc return standard error objects with error code numbers,s_nakamoto2010-09-061-79/+151
| | | | | | | 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
* propset svn:eol-style natives_nakamoto2010-08-291-1202/+1202
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* change switch name to -disablesafemodes_nakamoto2010-08-251-2/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@144 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* more rpc methods allowed in safe modes_nakamoto2010-08-251-2/+21
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@143 1a98c847-1fd6-4fd8-948a-caf3550aa51b