aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge #10199: Better fee estimatesPieter Wuille2017-05-171-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38bc1ec Make more json-like output from estimaterawfee (Alex Morcos) 2d2e170 Comments and improved documentation (Alex Morcos) ef589f8 minor cleanup: remove unnecessary variable (Alex Morcos) 3ee76d6 Introduce a scale factor (Alex Morcos) 5f1f0c6 Historical block span (Alex Morcos) aa19b8e Clean up fee estimate debug printing (Alex Morcos) 10f7cbd Track first recorded height (Alex Morcos) 3810e97 Rewrite estimateSmartFee (Alex Morcos) c7447ec Track failures in fee estimation. (Alex Morcos) 4186d3f Expose estimaterawfee (Alex Morcos) 2681153 minor refactor: explicitly track start of new bucket range and don't update curNearBucket on final loop. (Alex Morcos) 1ba43cc Make EstimateMedianVal smarter about small failures. (Alex Morcos) d3e30bc Refactor to update moving average on fly (Alex Morcos) e5007ba Change parameters for fee estimation and estimates on all 3 time horizons. (Alex Morcos) c0a273f Change file format for fee estimates. (Alex Morcos) Tree-SHA512: 186e7508d86a1f351bb656edcd84ee9091f5f2706331eda9ee29da9c8eb5bf67b8c1f2abf6662835560e7f613b1377099054f20767f41ddcdbc89c4f9e78946d
| * Rewrite estimateSmartFeeAlex Morcos2017-05-101-0/+1
| | | | | | | | Change the logic of estimateSmartFee to check a 60% threshold at half the target, a 85% threshold at the target and a 95% threshold at double the target. Always check the shortest time horizon possible and ensure that estimates are monotonically decreasing. Add a conservative mode, which makes sure that the 95% threshold is also met at longer time horizons as well.
| * Expose estimaterawfeeAlex Morcos2017-05-101-0/+3
| | | | | | | | Track information the ranges of fee rates that were used to calculate the fee estimates (the last range of fee rates in which the data points met the threshold and the first to fail) and provide an RPC call to return this information.
* | Add query options to listunspent rpc callPedro Branco2017-05-171-0/+1
| |
* | Merge #8704: [RPC] Transaction details in getblockWladimir J. van der Laan2017-05-151-1/+1
|\ \ | | | | | | | | | | | | | | | | | | e3c9f2d Use a verbosity instead of two verbose parameters (Andrew Chow) c99ab3c RPC: Allow multiple names for parameters (Luke Dashjr) Tree-SHA512: 686b38f6b0106563738d51f55666fe6d49a5b121b30d4480c2bfb640a59ede8e6f7f3c05c3c5d80a5288e127991e191d19d1d4f9ace566fd39edeb27b31857ff
| * | Use a verbosity instead of two verbose parametersAndrew Chow2017-05-121-1/+1
| | | | | | | | | | | | | | | Verbose is changed to an int. This can have values from 0-2 for each level of verbosity. Verbosity level 2 has transaction details displayed in the results.
* | | Add getchaintxstats RPCPieter Wuille2017-05-031-0/+1
| |/ |/|
* | Allow disconnectnode() to be called with node idJohn Newbery2017-04-191-0/+1
| | | | | | | | | | | | disconnectnode() can currently only be called with the IP address/port of the node the user wishes to connect. This commit allows the node to be disconnected using the nodeid returned by getpeerinfo().
* | [rpc] Add logging RPCJohn Newbery2017-04-101-0/+2
|/ | | | Adds an RPC to get and set currently active logging categories.
* rpc: Rename first named arg of createrawtransactionMarcoFalke2017-03-261-1/+1
|
* Refactor: Remove using namespace <xxx> from rpc/Karl-Johan Alm2017-03-081-3/+1
|
* [rpc] Remove priorityDelta from prioritisetransactionAlex Morcos2017-03-031-2/+1
| | | | This a breaking API change to the prioritisetransaction RPC call which previously required exactly three arguments and now requires exactly two (hash and feeDelta). The function prioritiseTransaction is also updated.
* [rpc] Remove estimatepriority and estimatesmartpriority.Alex Morcos2017-02-271-2/+0
| | | | The RPC calls were already deprecated.
* [trivial] Fix recently introduced typos in commentspracticalswift2017-02-141-1/+1
|
* Merge #8456: [RPC] Simplified bumpfee command.Wladimir J. van der Laan2017-01-191-0/+1
|\ | | | | | | | | | | cc0243a [RPC] bumpfee (mrbandrews) 52dde66 [wallet] Add include_unsafe argument to listunspent RPC (Russell Yanofsky) 766e8a4 [wallet] Add IsAllFromMe: true if all inputs are from wallet (Suhas Daftuar)
| * [RPC] bumpfeemrbandrews2017-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | This command allows a user to increase the fee on a wallet transaction T, creating a "bumper" transaction B. T must signal that it is BIP-125 replaceable. T's change output is decremented to pay the additional fee. (B will not add inputs to T.) T cannot have any descendant transactions. Once B bumps T, neither T nor B's outputs can be spent until either T or (more likely) B is mined. Includes code by @jonasschnelli and @ryanofsky
* | Add pruneblockchain RPC to enable manual block file pruning.mrbandrews2017-01-101-0/+1
|/
* Update RPC argument namesJohn Newbery2017-01-101-2/+2
|
* rpc: Named argument support for bitcoin-cliWladimir J. van der Laan2017-01-101-90/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage e.g.: $ src/bitcoin-cli -testnet -named echo arg0="dfdf" [ "dfdf" ] Argument conversion also works, for arguments thus flagged in the table in `src/rpc/client.cpp`. $ src/bitcoin-cli -testnet -named echojson arg0="[1,2,3]" [ [ 1, 2, 3 ] ] Unknown parameter (detected server-side): $ src/bitcoin-cli -testnet -named getinfo arg0="dfdf" error code: -8 error message: Unknown named parameter arg0
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Merge #8996: Network activity toggleJonas Schnelli2016-11-111-0/+1
|\ | | | | | | | | | | | | | | | | 19f46f1 Qt: New network_disabled icon (Luke Dashjr) 54cf997 RPC/Net: Use boolean consistently for networkactive, and remove from getinfo (Luke Dashjr) b2b33d9 Overhaul network activity toggle (Jonas Schnelli) 32efa79 Qt: Add GUI feedback and control of network activity state. (Jon Lund Steffensen) e38993b RPC: Add "togglenetwork" method to toggle network activity temporarily (Jon Lund Steffensen) 7c9a98a Allow network activity to be temporarily suspended. (Jon Lund Steffensen)
| * Overhaul network activity toggleJonas Schnelli2016-10-241-0/+1
| | | | | | | | | | | | - Rename RPC command "togglenetwork" to "setnetworkactive (true|false)" - Add simple test case - GUI toggle added to connections icon in statusbar
* | Add importmulti rpc callPedro Branco2016-10-191-0/+2
|/
* add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for testsCory Fields2016-09-071-0/+6
| | | | | | | | | | | | | | waitfornewblock waits until a new block is received, or the timeout expires, then returns the current block height/hash. waitforblock waits for a specific blockhash, or until the timeout expires, then returns the current block height/hash. If the target blockhash is the current tip, it will return immediately. waitforblockheight waits until the tip has reached a certain height or higher, then returns the current height and hash. waitforblockheight is used to avoid polling in the rpc tests.
* Make the dummy argument to getaddednodeinfo optionalPieter Wuille2016-09-011-1/+0
|
* Add getmempooldescendants RPC callSuhas Daftuar2016-06-091-0/+1
|
* Add getmempoolancestors RPC callSuhas Daftuar2016-05-171-0/+1
|
* Merge #7793: [doxygen] Fix member commentsWladimir J. van der Laan2016-04-051-2/+2
|\ | | | | | | fada0c4 [doc] Fix doxygen comments for members (MarcoFalke)
| * [doc] Fix doxygen comments for membersMarcoFalke2016-04-031-2/+2
| |
* | RPC: fix generatetoaddress failing to parse address and add unit testmruddy2016-04-031-1/+0
|/
* Create generatetoaddress rpcAndrew C2016-03-211-0/+3
| | | | | | Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality. The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
* Merge #7663: Make the generate RPC call function for non-regtestWladimir J. van der Laan2016-03-141-0/+1
|\ | | | | | | 8a253b3 Make the generate RPC call function for non-regtest (Pieter Wuille)
| * Make the generate RPC call function for non-regtestPieter Wuille2016-03-091-0/+1
| |
* | Remove internal minerLeviathn2016-02-101-3/+0
|/ | | | | This code removes the internal miner which is only useful on Testnet. This leaves the internal miner that is useful on RegTest intact.
* move rpc* to rpc/Daniel Cousens2016-01-211-0/+163