aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | net: Pass CConnman around as neededCory Fields2016-09-081-2/+2
| | | |
* | | | add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for testsCory Fields2016-09-071-0/+147
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge #8629: C++11: s/boost::scoped_ptr/std::unique_ptr/Wladimir J. van der Laan2016-09-021-1/+1
|\ \ \ | | | | | | | | | | | | cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
| * | | C++11: s/boost::scoped_ptr/std::unique_ptr/Jorge Timón2016-09-011-1/+1
| | |/ | |/|
* / | Do not shadow global RPC table variable (tableRPC)Pavel Janík2016-08-251-2/+2
|/ /
* | Consensus: Remove ISMNicolasDorier2016-07-231-20/+16
| |
* | Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-2/+2
|/
* The bit field is shown only when status is "started"Pavel Janík2016-06-281-1/+1
|
* Merge #8258: RPC: Hide softfork if timeout is 0Wladimir J. van der Laan2016-06-271-3/+12
|\ | | | | | | 409f833 RPC: Hide softfork if timeout is 0 (jl2012)
| * RPC: Hide softfork if timeout is 0jl20122016-06-251-3/+12
| |
* | Merge #8244: remove unnecessary LOCK(cs_main) in getrawpmempoolWladimir J. van der Laan2016-06-251-2/+0
|\ \ | |/ |/| | | 27f8126 remove unnecessary LOCK(cs_main) (Daniel Cousens)
| * remove unnecessary LOCK(cs_main)Daniel Cousens2016-06-231-2/+0
| |
* | BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-0/+2
| | | | | | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* | [RPC] Return witness data in blockchain RPCsJohnson Lau2016-06-221-0/+2
| | | | | | | | Includes RPC field name changes by Luke-jr.
* | BIP141: Commitment structure and deploymentPieter Wuille2016-06-221-0/+1
|/ | | | Includes a fix by Suhas Daftuar and LongShao007
* Add ancestor statistics to mempool entry RPC outputSuhas Daftuar2016-06-091-0/+6
|
* Add getmempoolentry RPC callSuhas Daftuar2016-06-091-0/+34
|
* Add getmempooldescendants RPC callSuhas Daftuar2016-06-091-1/+66
|
* Add getmempoolancestors RPC callSuhas Daftuar2016-05-171-0/+65
|
* Refactor logic for converting mempool entries to JSONSuhas Daftuar2016-05-171-39/+51
|
* Rename ReconsiderBlock func to reflect real behaviorinstagibbs2016-05-091-1/+1
|
* Remove state arg from ReconsiderBlockinstagibbs2016-05-061-5/+3
|
* Merge #7916: Explicitly pass CChainParams& to DisconnectTip()Wladimir J. van der Laan2016-04-211-1/+1
|\ | | | | | | | | | | 176869f Explicitly pass CChainParams to ConnectBlock (face) d0a6353 Pass CChainParams to DisconnectTip() (face) 764d237 Globals: Explicitly pass const CChainParams& to UpdateTip() (Jorge Timón)
| * Pass CChainParams to DisconnectTip()face2016-04-191-1/+1
| |
* | Merge #7827: Speed up getchaintips.Wladimir J. van der Laan2016-04-191-8/+21
|\ \ | | | | | | | | | 87049e8 Speed up getchaintips. (mrbandrews)
| * | Speed up getchaintips.mrbandrews2016-04-181-8/+21
| | |
* | | rpc: make sure `gettxoutsetinfo` hash has txidsWladimir J. van der Laan2016-04-151-0/+1
| |/ |/| | | | | | | | | | | | | | | | | The key (transaction id for the following outputs) should be serialized to the HashWriter. This is a problem as it means different transactions in the same position with the same outputs will potentially result in the same hash. Fixes primary concern of #7758.
* | Merge #7756: Add cursor to iterate over utxo set, use this in `gettxoutsetinfo`Wladimir J. van der Laan2016-04-151-1/+57
|\ \ | | | | | | | | | 509cb00 txdb: Add Cursor() method to CCoinsView to iterate over UTXO set (Wladimir J. van der Laan)
| * | txdb: Add Cursor() method to CCoinsView to iterate over UTXO setWladimir J. van der Laan2016-04-151-1/+57
| |/ | | | | | | | | | | | | | | | | | | Add a method Cursor() to CCoinsView that returns a cursor which can be used to iterate over the whole UTXO set. - rpc: Change gettxoutsetinfo to use new Cursor method - txdb: Remove GetStats method - Now that GetStats is implemented in terms of Cursor, remove it.
* / getblockchaininfo: make bip9_softforks an object, not an array.Rusty Russell2016-04-131-8/+6
|/ | | | | | | | | | | | | | | | | | We can't change "softforks", but it seems far more logical to use tags in an object rather than using an "id" field in an array. For example, to get the csv status before, you need to iterate the array to find the entry with 'id' field equal to "csv": jq '.bip9_softforks | map(select(.id == "csv"))[] | .status' Now: jq '.bip9_softforks.csv.status' There is no issue with fork names being incompatible with JSON tags, since we're selecting them ourselves. Signed-off-by: Rusty Russell <[email protected]>
* RPC: add versionHex in getblock and getblockheader JSON results; expand data ↵mruddy2016-04-041-1/+15
| | | | in getblockchaininfo bip9_softforks field.
* Merge #7766: rpc: Register calls where they are definedWladimir J. van der Laan2016-03-311-0/+28
|\ | | | | | | fb8a8cf rpc: Register calls where they are defined (Wladimir J. van der Laan)
| * rpc: Register calls where they are definedWladimir J. van der Laan2016-03-311-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | Split out methods to every module, apart from 'help' and 'stop' which are implemented in rpcserver.cpp itself. - This makes it easier to add or remove RPC commands - no longer everything that includes rpcserver.h has to be rebuilt when there's a change there. - Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions. - Removes most of the bitcoin-specific code from rpcserver.cpp and .h. Continues #7307 for the non-wallet.
* | Add CHECKSEQUENCEVERIFY softfork through BIP9Pieter Wuille2016-03-181-0/+1
|/
* Softfork status report in RPCPieter Wuille2016-03-151-0/+22
|
* use cached block hash in blockToJSON()Pavel Vasin2016-03-121-1/+1
|
* move rpc* to rpc/Daniel Cousens2016-01-211-0/+891