aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
AgeCommit message (Collapse)Author
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
2010-08-25alert systems_nakamoto
-- version 0.3.11 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@142 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-20warning message if clock is too far offs_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@141 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-16blocks-1,s_nakamoto
verify block chain on load, so wouldn't have needed to delete blk*.dat, it would have done a reorg automatically git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@137 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-12fix -datadir=./subdir relative path,s_nakamoto
autostart off by default except on windows, fix occasional "vector iterator not dereferencable" assertion with msvc, fix readlink compile warning on linux build, use sys/param.h and BSD define instead of __BSD__, -paytxfee switch git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@130 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-11fix build, thanks jgarziks_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@129 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-10gethashespersec and added version and hashespersec to getinfos_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@127 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-10json-spirit print reals with 8 decimal places,s_nakamoto
bitcoind help <command> instead of bitcoind <command> -? git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@126 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-08-03new safety feature displays a warning message and locks down RPC if it ↵s_nakamoto
detects a problem that may require an upgrade -- version 0.3.8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@122 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-07-26bitcoind now compiles without wxWidgets or wxBases_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@112 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-07-25Gavin: BIO_FLAGS_BASE64_NO_NLs_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@111 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-07-25Lachesis: remove newlines every 64 characters in EncodeBase64s_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@110 1a98c847-1fd6-4fd8-948a-caf3550aa51b