aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
| * | [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
| * | [wallet] Add include_unsafe argument to listunspent RPCRussell Yanofsky2017-01-192-5/+14
| | |
* | | Merge #9499: Use recent-rejects, orphans, and recently-replaced txn for ↵Wladimir J. van der Laan2017-01-191-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compact-block-reconstruction c594580 Add braces around AddToCompactExtraTransactions (Matt Corallo) 1ccfe9b Clarify comment about mempool/extra conflicts (Matt Corallo) fac4c78 Make PartiallyDownloadedBlock::InitData's second param const (Matt Corallo) b55b416 Add extra_count lower bound to compact reconstruction debug print (Matt Corallo) 863edb4 Consider all (<100k memusage) txn for compact-block-extra-txn cache (Matt Corallo) 7f8c8ca Consider all orphan txn for compact-block-extra-txn cache (Matt Corallo) 93380c5 Use replaced transactions in compact block reconstruction (Matt Corallo) 1531652 Keep shared_ptrs to recently-replaced txn for compact blocks (Matt Corallo) edded80 Make ATMP optionally return the CTransactionRefs it replaced (Matt Corallo) c735540 Move ORPHAN constants from validation.h to net_processing.h (Matt Corallo)
| * | | Make ATMP optionally return the CTransactionRefs it replacedMatt Corallo2017-01-091-1/+1
| | | |
* | | | Replace FindLatestBefore used by importmuti with FindEarliestAtLeast.Gregory Maxwell2017-01-121-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In spite of the name FindLatestBefore used std::lower_bound to try to find the earliest block with a nTime greater or equal to the the requested value. But lower_bound uses bisection and requires the input to be ordered with respect to the comparison operation. Block times are not well ordered. I don't know what lower_bound is permitted to do when the data is not sufficiently ordered, but it's probably not good. (I could construct an implementation which would infinite loop...) To resolve the issue this commit introduces a maximum-so-far to the block indexes and searches that. For clarity the function is renamed to reflect what it actually does. An issue that remains is that there is no grace period in importmulti: If a address is created at time T and a send is immediately broadcast and included by a miner with a slow clock there may not yet have been any block with at least time T. The normal rescan has a grace period of 7200 seconds, but importmulti does not.
* | | Merge #9472: Disentangle progress estimation from checkpoints and update itWladimir J. van der Laan2017-01-121-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | df36371 Update estimated transaction count data (Pieter Wuille) e356d9a Shorten variable names and switch to tx/s (Pieter Wuille) 6dd8116 Remove SIGCHECK_VERIFICATION_FACTOR (Pieter Wuille) 3641141 Move tx estimation data out of CCheckPointData (Pieter Wuille) a4bac66 [MOVEONLY] Move progress estimation out of checkpoints (Pieter Wuille)
| * | | Move tx estimation data out of CCheckPointDataPieter Wuille2017-01-041-1/+1
| | | |
| * | | [MOVEONLY] Move progress estimation out of checkpointsPieter Wuille2017-01-041-1/+1
| | | |
* | | | Merge #9518: Return height of last block pruned by pruneblockchain RPCMarcoFalke2017-01-121-3/+10
|\ \ \ \ | | | | | | | | | | | | | | | 918d1fb Return height of last block pruned by pruneblockchain RPC (Russell Yanofsky)
| * | | | Return height of last block pruned by pruneblockchain RPCRussell Yanofsky2017-01-111-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Change suggested by Jonas Schnelli <[email protected]> in https://github.com/bitcoin/bitcoin/pull/7871#discussion_r95577623
* | | | | Merge #9520: Deprecate non-txindex getrawtransaction and better warningMarcoFalke2017-01-121-4/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | db904db Deprecate non-txindex getrawtransaction and better warning (Pieter Wuille)
| * | | | | Deprecate non-txindex getrawtransaction and better warningPieter Wuille2017-01-111-4/+8
| |/ / / /
* | | | | Merge #9297: Various RPC help outputs updatedMarcoFalke2017-01-122-8/+10
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | 54ee3fc RPC help updated (Michael Rotarius)
| * | | | RPC help updatedMichael Rotarius2017-01-112-8/+10
| | |_|/ | |/| |
* | | | fixup! Add pruneblockchain RPC to enable manual block file pruning.Russell Yanofsky2017-01-101-1/+11
| | | | | | | | | | | | | | | | Extend pruneblockchain RPC to accept block timestamps as well as block indices.
* | | | Add pruneblockchain RPC to enable manual block file pruning.mrbandrews2017-01-102-0/+32
|/ / /
* | | Merge #8811: rpc: Add support for JSON-RPC named argumentsWladimir J. van der Laan2017-01-109-233/+348
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4e7e2e1 Update RPC argument names (John Newbery) 481f289 rpc: Named argument support for bitcoin-cli (Wladimir J. van der Laan) 9adb4e1 rpc: Argument name consistency (Wladimir J. van der Laan) 8d713f7 rpc: Named arguments for rawtransaction calls (Wladimir J. van der Laan) 37a166f rpc: Named arguments for wallet calls (Wladimir J. van der Laan) 78b684f rpc: Named arguments for mining calls (Wladimir J. van der Laan) b8ebc59 rpc: Named arguments for net calls (Wladimir J. van der Laan) 2ca9dcd test: Add test for RPC named arguments (Wladimir J. van der Laan) fba1a61 rpc: Named arguments for misc calls (Wladimir J. van der Laan) 286ec08 rpc: Add 'echo' call for testing (Wladimir J. van der Laan) 495eb44 rpc: Named arguments for blockchain calls (Wladimir J. van der Laan) 6f1c76a rpc: Support named arguments (Wladimir J. van der Laan) 5865d41 authproxy: Add support for RPC named arguments (Wladimir J. van der Laan)
| * | Update RPC argument namesJohn Newbery2017-01-106-57/+57
| | |
| * | rpc: Named argument support for bitcoin-cliWladimir J. van der Laan2017-01-103-92/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | rpc: Argument name consistencyWladimir J. van der Laan2017-01-053-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | The meaning is clear from the context, and we're inconsistent here. Also save typing when using named arguments. - `bitcoinaddress` -> `address` - `bitcoinprivkey` -> `privkey` - `bitcoinpubkey` -> `pubkey`
| * | rpc: Named arguments for rawtransaction callsWladimir J. van der Laan2017-01-051-11/+11
| | |
| * | rpc: Named arguments for mining callsWladimir J. van der Laan2017-01-051-22/+22
| | |
| * | rpc: Named arguments for net callsWladimir J. van der Laan2017-01-051-15/+17
| | | | | | | | | | | | Also add a more descriptive message for `setnetworkactive`.
| * | rpc: Named arguments for misc callsWladimir J. van der Laan2017-01-051-8/+8
| | |
| * | rpc: Add 'echo' call for testingWladimir J. van der Laan2017-01-051-0/+12
| | | | | | | | | | | | This hidden call simply returns what is passed in.
| * | rpc: Named arguments for blockchain callsWladimir J. van der Laan2017-01-051-31/+31
| | |
| * | rpc: Support named argumentsWladimir J. van der Laan2017-01-052-9/+57
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | The [JSON-RPC specification](http://www.jsonrpc.org/specification) allows passing parameters as an Array, for by-position arguments, or an Object, for by-name arguments. This implements by-name arguments, but preserves full backwards compatibility. API using by-name arguments are easier to extend, and easier to use (no need to guess which argument goes where). Named are mapped to positions by a per-call structure, provided through the RPC command table. Missing arguments will be replaced by null, except if at the end, then the argument is left out completely. Currently calls fail (though not crash) on intermediate nulls, but this should be improved on a per-call basis later.
* | RPC help documentation for addnode peerinfo.Gregory Maxwell2017-01-051-0/+1
| | | | | | | | Also adds a comment about the netgroup exclusion behavior.
* | Break addnode out from the outbound connection limits.Gregory Maxwell2017-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously addnodes were in competition with outbound connections for access to the eight outbound slots. One result of this is that frequently a node with several addnode configured peers would end up connected to none of them, because while the addnode loop was in its two minute sleep the automatic connection logic would fill any free slots with random peers. This is particularly unwelcome to users trying to maintain links to specific nodes for fast block relay or purposes. Another result is that a group of nine or more nodes which are have addnode configured towards each other can become partitioned from the public network. This commit introduces a new limit of eight connections just for addnode peers which is not subject to any of the other connection limitations (including maxconnections). The choice of eight is sufficient so that under no condition would a user find themselves connected to fewer addnoded peers than previously. It is also low enough that users who are confused about the significance of more connections and have gotten too copy-and-paste happy will not consume more than twice the slot usage of a typical user. Any additional load on the network resulting from this will likely be offset by a reduction in users applying even more wasteful workaround for the prior behavior. The retry delays are reduced to avoid nodes sitting around without their added peers up, but are still sufficient to prevent overly aggressive repeated connections. The reduced delays also make the system much more responsive to the addnode RPC. Ban-disconnects are also exempted for peers added via addnode since the outbound addnode logic ignores bans. Previously it would ban an addnode then immediately reconnect to it. A minor change was also made to CSemaphoreGrant so that it is possible to re-acquire via an object whos grant was moved.
* | Merge #8747: [rpc] Fix transaction size comments and RPC help text.Wladimir J. van der Laan2017-01-052-7/+9
|\ \ | |/ |/| | | d29505d Fix transaction size comments. Size now refers to virtual size as defined in BIP141. (jonnynewbs)
| * Fix transaction size comments. Size now refers to virtual size as defined in ↵jonnynewbs2016-12-082-7/+9
| | | | | | | | BIP141.
* | Merge #9283: A few more CTransactionRef optimizationsWladimir J. van der Laan2017-01-041-3/+3
|\ \ | | | | | | | | | | | | | | | | | | 91335ba Remove unused MakeTransactionRef overloads (Pieter Wuille) 6713f0f Make FillBlock consume txn_available to avoid shared_ptr copies (Pieter Wuille) 62607d7 Convert COrphanTx to keep a CTransactionRef (Pieter Wuille) c44e4c4 Make AcceptToMemoryPool take CTransactionRef (Pieter Wuille)
| * | Make AcceptToMemoryPool take CTransactionRefPieter Wuille2016-12-211-3/+3
| | |
* | | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-3111-11/+11
| | | | | | | | | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | | Added missing colons in when running help commandAnditto Heristyo2016-12-223-14/+14
|/ /
* | Merge #8589: Inline CTxInWitness inside CTxInWladimir J. van der Laan2016-12-211-7/+4
|\ \ | | | | | | | | | f6fb7ac Move CTxInWitness inside CTxIn (Pieter Wuille)
| * | Move CTxInWitness inside CTxInPieter Wuille2016-12-041-7/+4
| | |
* | | Merge #9273: Remove unused CDiskBlockPos* argument from ProcessNewBlockWladimir J. van der Laan2016-12-141-2/+2
|\ \ \ | | | | | | | | | | | | a13fa4c Remove unused CDiskBlockPos* argument from ProcessNewBlock (Matt Corallo)
| * | | Remove unused CDiskBlockPos* argument from ProcessNewBlockMatt Corallo2016-12-041-2/+2
| | | |
* | | | Add option to return non-segwit serialization via rpcGregory Sanders2016-12-054-2/+15
| |/ / |/| |
* | | Merge #9014: Fix block-connection performance regressionWladimir J. van der Laan2016-12-052-5/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | dd0df81 Document ConnectBlock connectTrace postconditions (Matt Corallo) 2d6e561 Switch pblock in ProcessNewBlock to a shared_ptr (Matt Corallo) 2736c44 Make the optional pblock in ActivateBestChain a shared_ptr (Matt Corallo) ae4db44 Create a shared_ptr for the block we're connecting in ActivateBCS (Matt Corallo) fd9d890 Keep blocks as shared_ptrs, instead of copying txn in ConnectTip (Matt Corallo) 6fdd43b Add struct to track block-connect-time-generated info for callbacks (Matt Corallo)
| * | Switch pblock in ProcessNewBlock to a shared_ptrMatt Corallo2016-12-041-3/+5
| | | | | | | | | | | | | | | This (finally) fixes a performance regression in b3b3c2a5623d5c942d2b3565cc2d833c65105555
| * | Make the optional pblock in ActivateBestChain a shared_ptrMatt Corallo2016-12-041-2/+2
| | |
* | | Make DecodeHexTx return a CMutableTransactionPieter Wuille2016-12-021-5/+6
| | |
* | | Switch GetTransaction to returning a CTransactionRefPieter Wuille2016-12-021-4/+4
|/ /
* | Merge #9260: Mrs Peacock in The Library with The Candlestick (killed ↵Pieter Wuille2016-12-025-5/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | main.{h,cpp}) 76faa3c Rename the remaining main.{h,cpp} to validation.{h,cpp} (Matt Corallo) e736772 Move network-msg-processing code out of main to its own file (Matt Corallo) 87c35f5 Remove orphan state wipe from UnloadBlockIndex. (Matt Corallo)
| * | Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-025-5/+5
| | |
| * | Move network-msg-processing code out of main to its own fileMatt Corallo2016-12-021-0/+1
| | |
* | | Disable fee estimates for a confirm target of 1 blockAlex Morcos2016-11-291-0/+2
|/ /
* | Merge #9189: Always add default_witness_commitment with GBT client supportWladimir J. van der Laan2016-11-251-1/+3
|\ \ | | | | | | | | | | | | 95f4a03 [qa] Test getblocktemplate default_witness_commitment (Suhas Daftuar) ad04d1c Always add default_witness_commitment with GBT client support (Pieter Wuille)