aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1672 from gmaxwell/filter_listunspentGregory Maxwell2012-08-241-0/+2
|\ | | | | Listunspent txout address filtering and listaddressgroupings
| * Add txout address filtering to listunspent.Gregory Maxwell2012-08-231-0/+1
| | | | | | | | | | | | This applies on top of the coincontrol listaddressgroupings patch and makes finding eligible outputs from the groups returned by listaddressgroupings possible.
| * Add address groupings RPC from the coincontrol patches.coderrr2012-08-231-0/+1
| | | | | | | | Signed-off-by: Gregory Maxwell <[email protected]>
* | Avoid leaving return types or function attributes on their own lines.Gregory Maxwell2012-08-241-2/+1
|/
* RPC: add facility to enable RPCs to run outside cs_main, wallet locksJeff Garzik2012-08-211-58/+62
| | | | | | | Use with 'stop' and 'help' RPCs. This provides a facility to individually evaluate the locking for an RPC, and potentially make it more parallel.
* Merge pull request #1693 from jgarzik/rpcwalletJeff Garzik2012-08-211-1624/+2
|\ | | | | Move code to new modules rpcwallet.cpp, rpcblockchain.cpp
| * RPC, cosmetic: move more RPC code to new rpcblockchain.cpp moduleJeff Garzik2012-08-211-187/+0
| |
| * RPC, cosmetic: move wallet-related RPCs to new rpcwallet.cpp moduleJeff Garzik2012-08-211-1437/+2
| |
* | Merge pull request #1690 from gavinandresen/signrawtx_nullGregory Maxwell2012-08-211-10/+16
|\ \ | |/ |/| Allow signrawtransaction '...' null null 'hashtype'
| * Allow signrawtransaction '...' null null 'hashtype'Gavin Andresen2012-08-201-10/+16
| | | | | | | | | | | | Allows the user to pass null as the second or third parameter to signrawtransaction, in case you need to (for example) fetch private keys from the wallet but want to specify the hash type.
* | RPC, cosmetic: Create rpcmining.cpp as new home for mining-related RPC codeJeff Garzik2012-08-211-365/+9
| |
* | RPC, cosmetic: de-indent getblocktemplate()Jeff Garzik2012-08-211-95/+93
| |
* | RPC: split new 'submitblock' out of 'getblocktemplate'Jeff Garzik2012-08-211-20/+32
|/
* Merge branch 'gmp_bip_0.6.0' into gmp_bipLuke Dashjr2012-08-031-18/+93
|\ | | | | | | | | Conflicts: src/bitcoinrpc.cpp
| * Minimal BIP 22 (getblocktemplate) supportLuke Dashjr2012-08-031-20/+95
| | | | | | | | | | | | | | - Replaces getmemorypool with new getblocktemplate - Add missing keys: coinbaseaux, target, mutable, noncerange, sigoplimit, sizelimit, and height - Accept and send parameter Objects, checking "mode" key if present - Return rejection reason "rejected" for submit mode
* | Merge pull request #1612 from luke-jr/opti_getblkhashGregory Maxwell2012-08-011-4/+1
|\ \ | | | | | | Optimize JSON-RPC getblockhash
| * | Optimize JSON-RPC getblockhashLuke Dashjr2012-08-011-4/+1
| | | | | | | | | | | | | | | - If the height is in the first half, start at the genesis block and go up, rather than at the top - Cache the last lookup and use it as a reference point if it's close to the next request, to make linear lookups always fast
* | | Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-011-6/+6
| | |
* | | Merge branch 'bugfix_CNBerr' of git://github.com/luke-jr/bitcoinGavin Andresen2012-07-261-2/+20
|\ \ \
| * | | Bugfix: getmemorypool: NULL pindexPrev across CreateNewBlock, in case it failsLuke Dashjr2012-05-091-1/+11
| | | |
| * | | Merge branch 'bugfix_CNBerr_daggy' into bugfix_CNBerrLuke Dashjr2012-05-091-1/+9
| | | | | | | | | | | | | | | | | | | | Conflicts: rpc.cpp
* | | | Give a better error message than 'type mismatch' for complex JSON argumentsGavin Andresen2012-07-171-2/+3
| | | |
* | | | Fix thread names after reviewGiel van Schijndel2012-07-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix wrong thread name for wallet *relocking* thread - Was named the unlocking thread * Use consistent naming Signed-off-by: Giel van Schijndel <[email protected]>
* | | | Give threads a recognisable name to aid in debuggingGiel van Schijndel2012-07-171-0/+14
| |/ / |/| | | | | | | | | | | | | | | | | | | | NOTE: These thread names are visible in gdb when using 'info threads'. Additionally both 'top' and 'ps' show these names *unless* told to display the command-line instead of task name. Signed-off-by: Giel van Schijndel <[email protected]>
* | | bitcoinrpc.cpp: Removed outdated commentJeff Garzik2012-07-051-4/+0
| | | | | | | | | | | | Fixes #1373
* | | Use unsigned ints to fix signed/unsigned warningsGavin Andresen2012-07-051-1/+1
| | |
* | | Implement raw transaction RPC callsGavin Andresen2012-07-051-43/+23
| | | | | | | | | | | | | | | | | | Implement listunspent / getrawtransaction / createrawtransaction / signrawtransaction, to support creation and signing-on-multiple-device multisignature transactions.
* | | RPCTypeCheck method to make type-checking JSON Arrays easier.Gavin Andresen2012-07-051-0/+37
| | |
* | | Rework gettransaction / getblock RPC callsGavin Andresen2012-07-051-264/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PULL reworks new (post-0.6.*) features of the gettransaction/getblock RPC calls as follows: It removes the 'decompositions' object argument from getblock, replacing it just a list of transaction hashes; equivalent (I believe) of passing the {"tx":"hash"} decomposition. It replaces the 'decompositions' object argument of gettransaction with a boolean flag; if true, returns the same stuff that the {"script":"obj"} decomposition would return (txins/txouts as hex, disassembled, and bitcoin addresses). It adds a "rawtx" field to the output of gettransaction, that is the entire transaction serialized and hex-encoded. It removes the "size" field from gettransaction, since the size is trivial to compute from the "rawtx" field (either take the length after hex-decoding, or just compute it as hex-length/2).
* | | RPC: add support for JSON-RPC 2.0-style request batchingJeff Garzik2012-07-031-5/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the top-level object is an array, it is assumed to be an array of JSON-RPC requests. An array is returned, containing one response (error or not) per request, in the order submitted. In a slight change in semantics, batched requests -always- return an HTTP 200 OK status, even ones full of invalid or incorrect requests.
* | | RPC: break out high level JSON-RPC req/resp into their own functionsJeff Garzik2012-07-031-30/+55
| | | | | | | | | | | | This prepares for JSON-RPC 2.0 batches.
* | | RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik2012-06-291-0/+2
| | |
* | | Create new rpcnet module, and move 'getconnectioncount' RPC to itJeff Garzik2012-06-281-11/+1
| | |
* | | Fix build error.Matt Corallo2012-06-281-1/+1
| | |
* | | Lock vnThreadsRunning[THREAD_RPCHANDLER].Matt Corallo2012-06-281-3/+14
| | |
* | | Use a rpc-specific queue to tell asio connections to shutdown.Matt Corallo2012-06-281-2/+5
| | |
* | | Revert "*Always* send a shutdown signal to enable custom shutdown actions"Matt Corallo2012-06-281-1/+2
| | | | | | | | | | | | This reverts commit 896899e0d66e25f6549a92749d237c8a87b12f08.
* | | Cancel outstanding listen ops for RPC when shutting downGiel van Schijndel2012-06-241-31/+26
| | | | | | | | | | | | | | | | | | | | | Use Boost's signal2 slot tracking mechanism to cancel any (still open) listening sockets when receiving a shutdown signal. Signed-off-by: Giel van Schijndel <[email protected]>
* | | Merge branch 'master' into async-ipv6-rpcGiel van Schijndel2012-06-241-0/+18
|\ \ \
| * | | RPC: add 'getrawmempool', listing all transaction ids in memory poolJeff Garzik2012-06-221-0/+18
| | | |
* | | | *Always* send a shutdown signal to enable custom shutdown actionsGiel van Schijndel2012-06-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: This is required to be sure that we can properly shut down the RPC thread. Signed-off-by: Giel van Schijndel <[email protected]>
* | | | Merge branch 'master' into async-ipv6-rpcGiel van Schijndel2012-06-171-129/+133
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/bitcoinrpc.cpp Signed-off-by: Giel van Schijndel <[email protected]>
| * | | introduce a new StartShutdown() function, which starts a thread with ↵Philip Kaufmann2012-06-121-7/+7
| | | | | | | | | | | | | | | | Shutdown() if no GUI is used and calls uiInterface.QueueShutdown() if a GUI is used / all direct uiInterface.QueueShutdown() calls are replaced with Shutdown() - this ensures a clean GUI shutdown, even when catching a SIGTERM and allows the BitcoinGUI destructor to get called (which fixes a tray-icon issue and keeps the tray-icon until Bitcoin-Qt exits)
| * | | Merge branch 'netopt' of https://github.com/sipa/bitcoinGavin Andresen2012-06-041-1/+4
| |\ \ \
| | * | | Rework network config settingsPieter Wuille2012-05-311-1/+4
| | | | |
| * | | | Use ConvertTo to simplify sendmany/addmultisigaddress argument handlingGavin Andresen2012-05-311-18/+5
| | | | |
| * | | | Make sendrawtx return txid to be consistent with other send methods.Gavin Andresen2012-05-311-1/+1
| |/ / /
| * | | Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-241-93/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces internal types: * CKeyID: reference (hash160) of a key * CScriptID: reference (hash160) of a script * CTxDestination: a boost::variant of the former two CBitcoinAddress is retrofitted to be a Base58 encoding of a CTxDestination. This allows all internal code to only use the internal types, and only have RPC and GUI depend on the base58 code. Furthermore, the header dependencies are a lot saner now. base58.h is at the top (right below rpc and gui) instead of at the bottom. For the rest: wallet -> script -> keystore -> key. Only keystore still requires a forward declaration of CScript. Solving that would require splitting script into two layers.
| * | | Encapsulate public keys in CPubKeyPieter Wuille2012-05-241-10/+10
| | | |
* | | | Use the QueueShutdown signal to stop accepting new RPC connectionsGiel van Schijndel2012-05-251-7/+7
| | | | | | | | | | | | | | | | Signed-off-by: Giel van Schijndel <[email protected]>