aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
Commit message (Collapse)AuthorAgeFilesLines
* move rpc* to rpc/Daniel Cousens2016-01-211-243/+0
|
* [RPC, Wallet] Move RPC dispatch table registration to wallet/ codeJonas Schnelli2016-01-201-41/+9
| | | | Allow extending the rpc dispatch table by appending commands when server is not running.
* Merge pull request #7312Wladimir J. van der Laan2016-01-131-0/+1
|\ | | | | | | | | | | | | d11fc16 [Wallet] Call notification signal when a transaction is abandoned (Jonas Schnelli) df0e222 Add RPC test for abandoned and conflicted transactions. (Alex Morcos) 01e06d1 Add new rpc call: abandontransaction (Alex Morcos) 9e69717 Make wallet descendant searching more efficient (Alex Morcos)
| * Add new rpc call: abandontransactionAlex Morcos2016-01-131-0/+1
| | | | | | | | Unconfirmed transactions that are not in your mempool either due to eviction or other means may be unlikely to be mined. abandontransaction gives the wallet a way to no longer consider as spent the coins that are inputs to such a transaction. All dependent transactions in the wallet will also be marked as abandoned.
* | [RPC] remove the option of having multiple timer interfacesJonas Schnelli2016-01-081-4/+6
|/
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Expose RPC calls for estimatesmart functionsAlex Morcos2015-11-161-0/+2
| | | | Also add testing for estimatesmartfee in smartfees.py
* [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | similar to secp256k1 include and compile univalue over a subtree
* Implement RPCTimerHandler for Qt RPC consoleWladimir J. van der Laan2015-09-031-2/+2
| | | | | | | Implement RPCTimerHandler for Qt RPC console, so that `walletpassphrase` works with GUI and `-server=0`. Also simplify HTTPEvent-related code by using boost::function directly.
* evhttpd implementationWladimir J. van der Laan2015-09-031-28/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - *Replace usage of boost::asio with [libevent2](http://libevent.org/)*. boost::asio is not part of C++11, so unlike other boost there is no forwards-compatibility reason to stick with it. Together with #4738 (convert json_spirit to UniValue), this rids Bitcoin Core of the worst offenders with regard to compile-time slowness. - *Replace spit-and-duct-tape http server with evhttp*. Front-end http handling is handled by libevent, a work queue (with configurable depth and parallelism) is used to handle application requests. - *Wrap HTTP request in C++ class*; this makes the application code mostly HTTP-server-neutral - *Refactor RPC to move all http-specific code to a separate file*. Theoreticaly this can allow building without HTTP server but with another RPC backend, e.g. Qt's debug console (currently not implemented) or future RPC mechanisms people may want to use. - *HTTP dispatch mechanism*; services (e.g., RPC, REST) register which URL paths they want to handle. By using a proven, high-performance asynchronous networking library (also used by Tor) and HTTP server, problems such as #5674, #5655, #344 should be avoided. What works? bitcoind, bitcoin-cli, bitcoin-qt. Unit tests and RPC/REST tests pass. The aim for now is everything but SSL support. Configuration options: - `-rpcthreads`: repurposed as "number of work handler threads". Still defaults to 4. - `-rpcworkqueue`: maximum depth of work queue. When this is reached, new requests will return a 500 Internal Error. - `-rpctimeout`: inactivity time, in seconds, after which to disconnect a client. - `-debug=http`: low-level http activity logging
* Add importpubkey method to import a watch-only pubkeyMatt Corallo2015-07-201-0/+1
|
* Merge pull request #6247Wladimir J. van der Laan2015-07-021-0/+1
|\ | | | | | | 076badb Add getblockheader RPC call (Peter Todd)
| * Add getblockheader RPC callPeter Todd2015-06-051-0/+1
| | | | | | | | | | Alternative to getblock that works even when the block itself has been pruned, returning all available information.
* | Merge pull request #6088Wladimir J. van der Laan2015-06-231-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 2085895 fundrawtransaction tests (Jonas Schnelli) 21bbd92 Add fundrawtransaction RPC method (Matt Corallo) 1e0d1a2 Add FundTransaction method to wallet (Matt Corallo) 2d84e22 Small tweaks to CCoinControl for fundrawtransaction (Matt Corallo) 9b4e7d9 Add DummySignatureCreator which just creates zeroed sigs (Pieter Wuille)
| * | Add fundrawtransaction RPC methodMatt Corallo2015-06-111-0/+1
| |/
* | setban: rewrite to UniValue, allow absolute bantimeJonas Schnelli2015-06-171-3/+3
| |
* | [RPC] add setban/listbanned/clearbanned RPC commandsJonas Schnelli2015-06-171-0/+3
| |
* | New RPC command disconnectnodeAlex van der Peet2015-06-161-0/+1
|/
* use const references where appropriatePhilip Kaufmann2015-06-041-5/+5
|
* Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli2015-06-041-1/+2
| | | | | | - implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
* remove JSON Spirit UniValue wrapperJonas Schnelli2015-06-041-101/+101
|
* Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik2015-06-041-9/+9
|
* Merge pull request #5420Wladimir J. van der Laan2015-05-061-0/+1
|\ | | | | | | | | 6b4feb8 [QA] rest.py RPC test: change setgenerate() to generate() (Jonas Schnelli) 97ee866 [REST] getutxos REST command (based on Bip64) (Jonas Schnelli)
| * [REST] getutxos REST command (based on Bip64)Jonas Schnelli2015-04-211-0/+1
| | | | | | | | | | | | | | | | has parts of @mhearn #4351 * allows querying the utxos over REST * same binary input and outputs as mentioned in Bip64 * input format = output format * various rpc/rest regtests
* | Add RPC call to generate and verify merkle blocksMatt Corallo2015-04-231-0/+2
|/
* Push down RPC reqWallet flagJonas Schnelli2015-04-121-1/+0
|
* Introduce separate 'generate' RPC callPieter Wuille2015-04-011-0/+1
|
* Regression test for ResendWalletTransactionsGavin Andresen2015-03-241-0/+1
| | | | | | | | | | | | | | | | Adds a regression test for the wallet's ResendWalletTransactions function, which uses a new, hidden RPC command "resendwallettransactions." I refactored main's Broadcast signal so it is passed the best-block time, which let me remove a global variable shared between main.cpp and the wallet (nTimeBestReceived). I also manually tested the "rebroadcast unconfirmed every half hour or so" functionality by: 1. Running bitcoind -connect=0.0.0.0:8333 2. Creating a couple of send-to-self transactions 3. Connect to a peer using -addnode 4. Waited a while, monitoring debug.log, until I see: ```2015-03-23 18:48:10 ResendWalletTransactions: rebroadcast 2 unconfirmed transactions``` One last change: don't bother putting ResendWalletTransactions messages in debug.log unless unconfirmed transactions were actually rebroadcast.
* Trim RPC command tableWladimir J. van der Laan2015-01-281-1/+0
| | | | | - invalidateblock and reconsiderblock were defined doubly - remove no-longer-used threadSafe, as locks have been pushed down
* Removed main.h dependency from rpcserver.cppEric Lombrozo2015-01-281-0/+10
| | | | | | | | Rebased by @laanwj: - update for RPC methods added since 84d13ee: setmocktime, invalidateblock, reconsiderblock. Only the first, setmocktime, required a change, the other two are thread safe.
* Merge pull request #5599Wladimir J. van der Laan2015-01-241-1/+0
|\ | | | | | | 0cc0d8d Get rid of the internal miner's hashmeter (jtimon)
| * Get rid of the internal miner's hashmeterjtimon2015-01-041-1/+0
| |
* | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | Make pass-by-ref arguments const.Daniel Kraft2014-12-161-2/+2
|/ | | | | Make some of the arguments in rest.cpp, that are passed by reference but never modified, const to emphasise that.
* Add 'invalidateblock' and 'reconsiderblock' RPC commands.Pieter Wuille2014-11-261-0/+2
| | | | | These can be used for testing reorganizations or for manual intervention in case of chain forks.
* [REST] give an appropriate response in warmup phaseJonas Schnelli2014-11-261-0/+3
|
* Update comments in src/rpc* to be doxygen compatibleMichael Ford2014-11-201-3/+4
|
* Merge pull request #5280Gavin Andresen2014-11-181-0/+1
|\ | | | | | | | | | | 3c30f27 travis: disable rpc tests for windows until they're not so flaky (Cory Fields) daf03e7 RPC tests: create initial chain with specific timestamps (Gavin Andresen) a8b2ce5 regression test only setmocktime RPC call (Gavin Andresen)
| * regression test only setmocktime RPC callGavin Andresen2014-11-171-0/+1
| |
* | Add unauthenticated HTTP REST interface to public blockchain data.Jeff Garzik2014-11-111-0/+6
|/
* Add "warmup mode" for RPC server.Daniel Kraft2014-11-041-0/+7
| | | | | | | | | | | | Start the RPC server before doing all the (expensive) startup initialisations like loading the block index. Until the node is ready, return all calls immediately with a new error signalling "in warmup" with an appropriate status message (similar to the init message). This is useful for RPC clients to know that the server is there (e. g., they don't have to start it) but not yet available. It is used in Namecoin and Huntercoin already for some time, and there exists a UI hooked onto the RPC interface that actively uses this to its advantage.
* Fix all header definesPavel Janík2014-11-031-3/+3
|
* minor cleanup: include orders, end comments etc.Philip Kaufmann2014-10-311-1/+1
| | | | - no code changes
* Update comments in rpcserver to be doxygen compatibleMichael Ford2014-10-301-19/+20
|
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-2/+3
|
* add missing header end commentsPhilip Kaufmann2014-08-281-2/+2
| | | | | | - ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
* Closely track mempool byte total. Add "getmempoolinfo" RPC.Jeff Garzik2014-08-141-0/+1
| | | | | Goal: Gain live insight into the mempool. Groundwork for future work that caps mempool size.
* Categorize rpc help overviewCozz Lovan2014-08-111-0/+1
| | | | | | | | | Conflicts: src/rpcserver.cpp Github-Pull: #4539 Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: df3d321
* Implement "getchaintips" RPC command to monitor blockchain forks.Daniel Kraft2014-08-031-0/+1
| | | | | | | | Port over https://github.com/chronokings/huntercoin/pull/19 from Huntercoin: This implements a new RPC command "getchaintips" that can be used to find all currently active chain heads. This is similar to the -printblocktree startup option, but it can be used without restarting just via the RPC interface on a running daemon.
* getblocktemplate: longpolling supportLuke Dashjr2014-07-111-0/+2
|