aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
AgeCommit message (Collapse)Author
2012-05-13Fix warning about uninitialized valuePieter Wuille
Only reported when using -flto.
2012-05-12convert 4 tabs into 4 x 4 spaces in bitcoinrpc.cppPhilip Kaufmann
2012-05-11Merge pull request #1101 from jgarzik/http11Jeff Garzik
Multithreaded JSON-RPC with HTTP 1.1 Keep-Alive support
2012-05-09Kill warning from unavoidable signed/unsigned comparison in bitcoinrpc.cpp.Gregory Maxwell
2012-05-08RPC: Support HTTP/1.0 and HTTP/1.1, including the proper use of keep-alivesDavid Joel Schwartz
2012-05-08Support multi-threaded JSON-RPCDavid Joel Schwartz
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]
2012-05-08Support for decomposing scripts as "obj"Luke Dashjr
2012-05-08Second parameter to JSON-RPC getblock/gettransaction: decompositionsLuke Dashjr
This is an Object specifying how to decompose specific elements. Currently supported: - "tx": "no", "hash", "hex", "obj" - "script": "no", "hex", "asm"
2012-05-08Add block "confirmations" to getblock, mainly for identifying orphansLuke Dashjr
2012-05-08Merge pull request #841 from sipa/getalltransactionsGregory Maxwell
gettransaction RPC for non-wallet transactions
2012-05-08Merge pull request #1075 from laanwj/2012_04_consoleuiGregory Maxwell
Add UI RPC console / debug window
2012-05-05Add UI RPC console / debug windowWladimir J. van der Laan
2012-05-04Fixed non-sensical error messagePeter Todd
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)"
2012-04-26Merge pull request #1151 from freewil/listsinceblock-blockhashGavin Andresen
listsinceblock: rpc param blockid -> blockhash
2012-04-26remove strange debug message from listsinceblockfreewil
2012-04-26listsinceblock: rpc param blockid -> blockhashfreewil
This is more consistent with the rest of the labeling seen by the user when accessing the rpc commands.
2012-04-23Add casts for unavoidable signed/unsigned comparisonsJeff Garzik
At these code sites, it is preferable to cast rather than change a variable's type.
2012-04-21Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille
2012-04-21Encapsulate mapCommands in class CRPCTablePieter Wuille
2012-04-21Encapsulate RPC command dispatch in an array of CRPCCommand'sJeff Garzik
2012-04-18gettransaction RPC for non-wallet transactionsPieter Wuille
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
2012-04-17Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille
2012-04-17Further reduce header dependenciesPieter Wuille
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.
2012-04-17Move CWalletDB code to new walletdb module.Jeff Garzik
In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
2012-04-17Remove headers.hPieter Wuille
2012-04-15Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik
foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
2012-04-15The string class returns string::npos, when find() fails.Jeff Garzik
Noticed when sign-comparison warnings were enabled.
2012-04-15CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik
and nPooledTx
2012-04-15fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]Wladimir J. van der Laan
2012-04-12Merge pull request #1041 from gavinandresen/listtransactionsfixGavin Andresen
Bug fix listtransactions from/count handling.
2012-04-11Use filesystem::path instead of manual string tinkeringPieter Wuille
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.
2012-04-11Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: ↵Gavin Andresen
boost::system
2012-04-10Merge pull request #1046 from laanwj/2012_04_rpcporterrorWladimir J. van der Laan
Show error message instead of exception crash when unable to bind RPC port
2012-04-09Merge pull request #1052 from sipa/scopedlocksPieter Wuille
Use scoped locks instead of CRITICAL_BLOCK
2012-04-09Use scoped locks instead of CRITICAL_BLOCKPieter Wuille
2012-04-06Show error message instead of exception crash when unable to bind RPC portWladimir J. van der Laan
Fixes issue #875
2012-04-06fixed small error in bitcoinrpc.cppPhilip Kaufmann
2012-04-06updated bitcoinrpc.cpp to use make_preferred() and removed double inclusion ↵Philip Kaufmann
of boost/filesystem.hpp
2012-04-05Merge pull request #1042 from gavinandresen/use_ssl_cleanupGavin Andresen
Remove USE_SSL #define
2012-04-04Remove USE_SSL #defineGavin Andresen
2012-04-04Bug fix listtransactions from/count handling.Gavin Andresen
2012-04-04Enable addmultisigaddress RPC call for main networkGavin Andresen
2012-04-04Use a messagebox to display the error when -server is provided without ↵Wladimir J. van der Laan
providing a rpc password
2012-04-04support RPC stop and encryptwallet with UIWladimir J. van der Laan
2012-04-03VC2010 compile fixesWladimir J. van der Laan
2012-03-22Introduce explicit -walletupgrade optionPieter Wuille
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.
2012-03-21replace call to PrintConsole with call to error()Wladimir J. van der Laan
As these are equivalent functions, this cleans up the source a bit. Also remove PrintConsole() as this was the only use.
2012-03-10Resolves issue #922 - "wallet passphrase timeout of several years doesn't work"Gregory Maxwell
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.
2012-02-26bitcoind changes to stop storing settings in wallet.dat.Gavin Andresen
2012-02-22Cleanup JSON-RPC getblock output to be consistentLuke Dashjr
- Add "size" and "bits" - Rename "blockcount" to "height" - Rename "hashprevious" and "hashnext" to "previousblockhash" and "nextblockhash" (respectively)