aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* convert 4 tabs into 4 x 4 spaces in bitcoinrpc.cppPhilip Kaufmann2012-05-121-5/+5
|
* Merge pull request #1101 from jgarzik/http11Jeff Garzik2012-05-111-37/+97
|\ | | | | Multithreaded JSON-RPC with HTTP 1.1 Keep-Alive support
| * RPC: Support HTTP/1.0 and HTTP/1.1, including the proper use of keep-alivesDavid Joel Schwartz2012-05-081-12/+38
| |
| * Support multi-threaded JSON-RPCDavid Joel Schwartz2012-05-081-32/+66
| | | | | | | | | | | | | | | | | | | | | | Change internal HTTP JSON-RPC server from single-threaded to thread-per-connection model. The IP filter list is applied prior to starting the thread, which then processes the RPC. A mutex covers the entire RPC operation, because not all RPC operations are thread-safe. [minor modifications by jgarzik, to make change upstream-ready]
* | Kill warning from unavoidable signed/unsigned comparison in bitcoinrpc.cpp.Gregory Maxwell2012-05-091-1/+1
|/
* Support for decomposing scripts as "obj"Luke Dashjr2012-05-081-0/+74
|
* Second parameter to JSON-RPC getblock/gettransaction: decompositionsLuke Dashjr2012-05-081-25/+122
| | | | | | | This is an Object specifying how to decompose specific elements. Currently supported: - "tx": "no", "hash", "hex", "obj" - "script": "no", "hex", "asm"
* Add block "confirmations" to getblock, mainly for identifying orphansLuke Dashjr2012-05-081-0/+3
|
* Merge pull request #841 from sipa/getalltransactionsGregory Maxwell2012-05-081-14/+81
|\ | | | | gettransaction RPC for non-wallet transactions
| * gettransaction RPC for non-wallet transactionsPieter Wuille2012-04-181-14/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Works for wallet transactions, memory-pool transaction and block chain transactions. Available for all: * txid * version * locktime * size * coinbase/inputs/outputs * confirmations Available only for wallet transactions: * amount * fee * details * blockindex Available for wallet transactions and block chain transactions: * blockhash * time
* | Merge pull request #1075 from laanwj/2012_04_consoleuiGregory Maxwell2012-05-081-75/+88
|\ \ | | | | | | Add UI RPC console / debug window
| * | Add UI RPC console / debug windowWladimir J. van der Laan2012-05-051-75/+88
| | |
* | | Fixed non-sensical error messagePeter Todd2012-05-041-3/+5
|/ / | | | | | | | | | | | | Previously trying to create a multisig address that required less than one signature would output something like the following: "wrong number of keys(got 1, need at least 0)"
* | Merge pull request #1151 from freewil/listsinceblock-blockhashGavin Andresen2012-04-261-2/+2
|\ \ | | | | | | listsinceblock: rpc param blockid -> blockhash
| * | listsinceblock: rpc param blockid -> blockhashfreewil2012-04-261-2/+2
| | | | | | | | | | | | | | | This is more consistent with the rest of the labeling seen by the user when accessing the rpc commands.
* | | remove strange debug message from listsinceblockfreewil2012-04-261-1/+0
|/ /
* | Add casts for unavoidable signed/unsigned comparisonsJeff Garzik2012-04-231-4/+6
| | | | | | | | | | At these code sites, it is preferable to cast rather than change a variable's type.
* | Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille2012-04-211-26/+5
| |
* | Encapsulate mapCommands in class CRPCTablePieter Wuille2012-04-211-27/+38
| |
* | Encapsulate RPC command dispatch in an array of CRPCCommand'sJeff Garzik2012-04-211-84/+89
|/
* Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille2012-04-171-1/+1
|\
| * CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik2012-04-151-1/+1
| | | | | | | | and nPooledTx
* | Further reduce header dependenciesPieter Wuille2012-04-171-5/+5
| | | | | | | | | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* | Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-171-0/+1
| | | | | | | | | | In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
* | Remove headers.hPieter Wuille2012-04-171-1/+4
| |
* | Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-151-1/+1
| | | | | | | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* | The string class returns string::npos, when find() fails.Jeff Garzik2012-04-151-1/+1
|/ | | | Noticed when sign-comparison warnings were enabled.
* fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]Wladimir J. van der Laan2012-04-151-0/+4
|
* Merge pull request #1041 from gavinandresen/listtransactionsfixGavin Andresen2012-04-121-15/+23
|\ | | | | Bug fix listtransactions from/count handling.
| * Bug fix listtransactions from/count handling.Gavin Andresen2012-04-041-15/+23
| |
* | Use filesystem::path instead of manual string tinkeringPieter Wuille2012-04-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Where possible, use boost::filesystem::path instead of std::string or char* for filenames. This avoids a lot of manual string tinkering, in favor of path::operator/. GetDataDir is also reworked significantly, it now only keeps two cached directory names (the network-specific data dir, and the root data dir), which are decided through a parameter instead of pre-initialized global variables. Finally, remove the "upgrade from 0.1.5" case where a debug.log in the current directory has to be removed.
* | Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: ↵Gavin Andresen2012-04-111-3/+1
| | | | | | | | boost::system
* | Merge pull request #1046 from laanwj/2012_04_rpcporterrorWladimir J. van der Laan2012-04-101-3/+15
|\ \ | | | | | | Show error message instead of exception crash when unable to bind RPC port
| * | Show error message instead of exception crash when unable to bind RPC portWladimir J. van der Laan2012-04-061-3/+15
| | | | | | | | | | | | Fixes issue #875
* | | Merge pull request #1052 from sipa/scopedlocksPieter Wuille2012-04-091-3/+4
|\ \ \ | | | | | | | | Use scoped locks instead of CRITICAL_BLOCK
| * | | Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-3/+4
| |/ /
* | | fixed small error in bitcoinrpc.cppPhilip Kaufmann2012-04-061-2/+2
| | |
* | | updated bitcoinrpc.cpp to use make_preferred() and removed double inclusion ↵Philip Kaufmann2012-04-061-13/+15
|/ / | | | | | | of boost/filesystem.hpp
* | Merge pull request #1042 from gavinandresen/use_ssl_cleanupGavin Andresen2012-04-051-27/+1
|\ \ | | | | | | Remove USE_SSL #define
| * | Remove USE_SSL #defineGavin Andresen2012-04-041-27/+1
| |/
* / Enable addmultisigaddress RPC call for main networkGavin Andresen2012-04-041-2/+0
|/
* Use a messagebox to display the error when -server is provided without ↵Wladimir J. van der Laan2012-04-041-8/+9
| | | | providing a rpc password
* support RPC stop and encryptwallet with UIWladimir J. van der Laan2012-04-041-14/+3
|
* VC2010 compile fixesWladimir J. van der Laan2012-04-031-7/+7
|
* Introduce explicit -walletupgrade optionPieter Wuille2012-03-221-0/+1
| | | | | | | | | | | | | | Do not automatically change the wallet format unless the user takes an explicit action that implies an upgrade (encrypting, for now), or uses -walletupgrade. -walletupgrade optionally takes an integer argument: the client version up to which upgrading is allowed. Without an argument, it is upgraded to latest supported version. If an argument to -walletupgrade is provided at the time the wallet is created, the new wallet will initially not use features beyond that version. Third, the current wallet version number is reported in getinfo.
* replace call to PrintConsole with call to error()Wladimir J. van der Laan2012-03-211-20/+2
| | | | | As these are equivalent functions, this cleans up the source a bit. Also remove PrintConsole() as this was the only use.
* Resolves issue #922 - "wallet passphrase timeout of several years doesn't work"Gregory Maxwell2012-03-101-3/+3
| | | | | | 2^31 milliseconds is only about 25 days. Also clamps Sleep() to 10 years, because it currently sleeps for 0 seconds when the sleep time would cross 2^31 seconds since the epoch. Hopefully boost will be fixed by 2028.
* bitcoind changes to stop storing settings in wallet.dat.Gavin Andresen2012-02-261-7/+5
|
* Cleanup JSON-RPC getblock output to be consistentLuke Dashjr2012-02-221-10/+17
| | | | | | - Add "size" and "bits" - Rename "blockcount" to "height" - Rename "hashprevious" and "hashnext" to "previousblockhash" and "nextblockhash" (respectively)
* Merge branch 'testnetmining' of github.com:gavinandresen/bitcoin-gitGavin Andresen2012-02-171-2/+2
|\