aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #8085: p2p: Begin encapsulationWladimir J. van der Laan2016-09-091-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0103c5b net: move MAX_FEELER_CONNECTIONS into connman (Cory Fields) e700cd0 Convert ForEachNode* functions to take a templated function argument rather than a std::function to eliminate std::function overhead (Jeremy Rubin) d1a2295 Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting (Jeremy Rubin) 98591c5 net: move vNodesDisconnected into CConnman (Cory Fields) fa2f8bc net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options (Cory Fields) a19553b net: Introduce CConnection::Options to avoid passing so many params (Cory Fields) bafa5fc net: Drop StartNode/StopNode and use CConnman directly (Cory Fields) e81a602 net: pass CClientUIInterface into CConnman (Cory Fields) f60b905 net: Pass best block known height into CConnman (Cory Fields) fdf69ff net: move max/max-outbound to CConnman (Cory Fields) 8a59369 net: move semOutbound to CConnman (Cory Fields) bd72937 net: move nLocalServices/nRelevantServices to CConnman (Cory Fields) be9c796 net: move SendBufferSize/ReceiveFloodSize to CConnman (Cory Fields) 63cafa6 net: move send/recv statistics to CConnman (Cory Fields) adf5d4c net: SocketSendData returns written size (Cory Fields) ee44fa9 net: move messageHandlerCondition to CConnman (Cory Fields) 960cf2e net: move nLocalHostNonce to CConnman (Cory Fields) 551e088 net: move nLastNodeId to CConnman (Cory Fields) 6c19d92 net: move whitelist functions into CConnman (Cory Fields) 53347f0 net: create generic functor accessors and move vNodes to CConnman (Cory Fields) c0569c7 net: Add most functions needed for vNodes to CConnman (Cory Fields) 8ae2dac net: move added node functions to CConnman (Cory Fields) 502dd3a net: Add oneshot functions to CConnman (Cory Fields) a0f3d3c net: move ban and addrman functions into CConnman (Cory Fields) aaf018e net: handle nodesignals in CConnman (Cory Fields) b1a5f43 net: move OpenNetworkConnection into CConnman (Cory Fields) 02137f1 net: Move socket binding into CConnman (Cory Fields) 5b446dd net: Pass CConnection to wallet rather than using the global (Cory Fields) 8d58c4d net: Pass CConnman around as needed (Cory Fields) d7349ca net: Add rpc error for missing/disabled p2p functionality (Cory Fields) cd16f48 net: Create CConnman to encapsulate p2p connections (Cory Fields) d93b14d net: move CBanDB and CAddrDB out of net.h/cpp (Cory Fields) 531214f gui: add NodeID to the peer table (Cory Fields)
| * 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