aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
AgeCommit message (Collapse)Author
2016-10-05Bugfix: Trivial: RPC: getblockchaininfo help: pruneheight is the lowest, not ↵Luke Dashjr
highest, block Github-Pull: #8884 Rebased-From: a78e5428acb862bfb47e6faff39f4889f5c73269
2016-10-03[rpc] throw JSONRPCError when utxo set can not be readMarcoFalke
Github-Pull: #8832 Rebased-From: fa05cfdf256f3bc13b89ea80231e342f4302d204
2016-09-26Remove createwitnessaddressJohnson Lau
This RPC command is unsafe as it will return an address even if the script is invalid. Github-Pull: #8699 Rebased-From: 86c3f8db0bf64693313a81d5fe92ef603499030a
2016-09-21[doc] Fix typos in comments, doxygen: Fix comment syntaxMarcoFalke
Github-Pull: #8607 Rebased-From: fa27c0a2c4545a579bf339e816c3fa785252b7dc
2016-09-21document return value of networkhashps for getmininginfo RPC endpointJameson Lopp
Github-Pull: #8461 Rebased-From: 65f4532f13a89cacc4909072601d71ee7ebae5c5
2016-09-21various typosleijurv
Github-Pull: #8505 Rebased-From: 1aacfc2da521a8e0d718e9ac561d9b2d7916eb0b
2016-09-21Corrected JSON typo on setban of net.cppSev
Github-Pull: #8512 Rebased-From: 6ffd996b8ee5f36ed4490410385f9b072da5889b
2016-08-10Bugfix: Use pre-BIP141 sigops until segwit activatesLuke Dashjr
qa/rpc-tests/segwit: Test GBT sigops before and after activation Github-Pull: #8489 Rebased-From: 160f895a80660e4e3904a2624e4110960d051902 239cbd2e5c2a36843b45b356e9aea6e8d35f0968
2016-07-19Rename "block cost" to "block weight"Suhas Daftuar
Github-Pull: #8363 Rebased-From: 2c06bae39edfaa9c0855d83377ad8fda09e4fa08
2016-07-09[Wallet] report optional HDKeypath/HDMasterKeyId in validateaddressJonas Schnelli
2016-06-28The bit field is shown only when status is "started"Pavel Janík
2016-06-27Merge #8258: RPC: Hide softfork if timeout is 0Wladimir J. van der Laan
409f833 RPC: Hide softfork if timeout is 0 (jl2012)
2016-06-25Merge #8244: remove unnecessary LOCK(cs_main) in getrawpmempoolWladimir J. van der Laan
27f8126 remove unnecessary LOCK(cs_main) (Daniel Cousens)
2016-06-25RPC: Hide softfork if timeout is 0jl2012
2016-06-23remove unnecessary LOCK(cs_main)Daniel Cousens
2016-06-22[RPC] signrawtransaction can sign P2WSHNicolasDorier
2016-06-22[RPC] Add wallet support for witness transactions (using P2SH)Pieter Wuille
Includes support for pushkeyhash wit v0 by Alex Morcos.
2016-06-22BIP143: Signing logicPieter Wuille
2016-06-22BIP141: Other consensus critical limits, and BIP145Pieter Wuille
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
2016-06-22[RPC] Return witness data in blockchain RPCsJohnson Lau
Includes RPC field name changes by Luke-jr.
2016-06-22BIP143: Verification logicPieter Wuille
Includes simplifications by Eric Lombrozo.
2016-06-22Refactor script validation to observe amountsPieter Wuille
This is a preparation for BIP143 support.
2016-06-22BIP141: Commitment structure and deploymentPieter Wuille
Includes a fix by Suhas Daftuar and LongShao007
2016-06-22BIP141: Witness programPieter Wuille
2016-06-22BIP144: Serialization, hashes, relay (sender side)Pieter Wuille
Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
2016-06-16Merge #8113: Rework addnode behaviourWladimir J. van der Laan
1a5a4e6 Randomize name lookup result in ConnectSocketByName (Pieter Wuille) f9f5cfc Prevent duplicate connections where one is by name and another by ip (Pieter Wuille) 1111b80 Rework addnode behaviour (Pieter Wuille)
2016-06-16Merge #8171: [RPC] Fix createrawtx sequence number unsigned int parsingWladimir J. van der Laan
6fa950a [RPC] Fix createrawtx sequence number unsigned int parsing (Jonas Schnelli)
2016-06-13Rework addnode behaviourPieter Wuille
* Use CNode::addeName to track whether a connection to a name is already open * A new connection to a previously-connected by-name addednode is only opened when the previous one closes (even if the name starts resolving to something else) * At most one connection is opened per addednode (even if the name resolves to multiple) * Unify the code between ThreadOpenAddedNodeConnections and getaddednodeinfo * Information about open connections is always returned, and the dns argument becomes a dummy * An IP address and inbound/outbound is only reported for the (at most 1) open connection
2016-06-13Merge #7598: Refactor CreateNewBlock to be a method of the BlockAssembler classWladimir J. van der Laan
c2dd5a3 FIX: correctly measure size of priority block (Alex Morcos) a278764 FIX: Account for txs already added to block in addPriorityTxs (Alex Morcos) 4dc94d1 Refactor CreateNewBlock to be a method of the BlockAssembler class (Alex Morcos)
2016-06-09Merge #7292: [RPC] Expose ancestor/descendant information over RPCPieter Wuille
176e19b Mention new RPC's in release notes (Suhas Daftuar) 7f6eda8 Add ancestor statistics to mempool entry RPC output (Suhas Daftuar) a9b8390 Add test coverage for new RPC calls (Suhas Daftuar) b09b813 Add getmempoolentry RPC call (Suhas Daftuar) 0dfd869 Add getmempooldescendants RPC call (Suhas Daftuar) 8f7b5dc Add getmempoolancestors RPC call (Suhas Daftuar) 5ec0cde Refactor logic for converting mempool entries to JSON (Suhas Daftuar)
2016-06-09Add ancestor statistics to mempool entry RPC outputSuhas Daftuar
2016-06-09Add getmempoolentry RPC callSuhas Daftuar
2016-06-09Add getmempooldescendants RPC callSuhas Daftuar
2016-06-08Merge #7935: Versionbits: GBT supportPieter Wuille
12c708a getblocktemplate: Use version/force mutation to support pre-BIP9 clients (Luke Dashjr) 9879060 getblocktemplate: Explicitly handle the distinction between GBT-affecting softforks vs not (Luke Dashjr) 72cd6b2 qa/rpc-tests: bip9-softforks: Add tests for getblocktemplate versionbits updates (Luke Dashjr) d3df40e Implement BIP 9 GBT changes (Luke Dashjr)
2016-06-08[RPC] Fix createrawtx sequence number unsigned int parsingJonas Schnelli
2016-06-08Merge #8153: [rpc] fundrawtransaction feeRate: Use BTC/kBWladimir J. van der Laan
fa7f4f5 [rpc] fundrawtransaction feeRate: Use BTC/kB (MarcoFalke) faf82e8 [rpc] fundrawtransaction: Fix help text and interface (MarcoFalke)
2016-06-08Merge #8065: Addrman offline attemptsWladimir J. van der Laan
6182d10 Do not increment nAttempts by more than one for every Good connection. (Gregory Maxwell) c769c4a Avoid counting failed connect attempts when probably offline. (Gregory Maxwell)
2016-06-07Merge #7957: [RPC][Bitcoin-TX] Add support for sequence numberWladimir J. van der Laan
ae357d5 [Bitcoin-Tx] Add tests for sequence number support (Jonas Schnelli) e59336f [bitcoin-tx] allow to set nSequence number over the in= command (Jonas Schnelli) a946bb6 [RPC] createrawtransaction: add option to set the sequence number per input (Jonas Schnelli)
2016-06-07Merge #8118: Reduce unnecessary hashing in signrawtransactionWladimir J. van der Laan
bd0f413 Reduce unnecessary hashing in signrawtransaction (Jonas Nick)
2016-06-07[rpc] fundrawtransaction feeRate: Use BTC/kBMarcoFalke
Also introduce UniValueType UniValueType is a wrapper for UniValue::VType which allows setting a typeAny flag. This flag indicates the type does not matter. (Used by RPCTypeCheckObj)
2016-06-06getblocktemplate: Use version/force mutation to support pre-BIP9 clientsLuke Dashjr
2016-06-06getblocktemplate: Explicitly handle the distinction between GBT-affecting ↵Luke Dashjr
softforks vs not
2016-06-06Implement BIP 9 GBT changesLuke Dashjr
- BIP9DeploymentInfo struct for static deployment info - VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names - getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN - In this commit, all rules are considered required for clients to support
2016-05-30Merge #7896: fix typo in help textWladimir J. van der Laan
fc95f6e fix typo in help text (Chris Moore)
2016-05-30Reduce unnecessary hashing in signrawtransactionJonas Nick
2016-05-26Merge #8049: Expose information on whether transaction relay is enabled in ↵Pieter Wuille
`getnetwork` 1ab1dc3 rpc: Add `relaytxes` flag to `getnetworkinfo` (Wladimir J. van der Laan) 581ddff net: Add fRelayTxes flag (Wladimir J. van der Laan)
2016-05-26Avoid counting failed connect attempts when probably offline.Gregory Maxwell
If a node is offline failed outbound connection attempts will crank up the addrman counter and effectively blow away our state. This change reduces the problem by only counting attempts made while the node believes it has outbound connections to at least two netgroups. Connect and addnode connections are also not counted, as there is no reason to unequally penalize them for their more frequent connections -- though there should be no real effect from this unless their addnode configureation is later removed. Wasteful repeated connection attempts while only a few connections are up are avoided via nLastTry. This is still somewhat incomplete protection because our outbound peers could be down but not timed out or might all be on 'local' networks (although the requirement for multiple netgroups helps).
2016-05-18Refactor CreateNewBlock to be a method of the BlockAssembler classAlex Morcos
2016-05-18Merge #7906: net: prerequisites for p2p encapsulation changesWladimir J. van der Laan
5d5e7a0 net: No need to export ConnectNode (Cory Fields) e9ed620 net: No need to export DumpBanlist (Cory Fields) 8b8f877 net: make Ban/Unban/ClearBan functionality consistent (Cory Fields) cca221f net: Drop CNodeRef for AttemptToEvictConnection (Cory Fields) 563f375 net: use the exposed GetNodeSignals() rather than g_signals directly (Cory Fields) 9faa490 net: remove unused set (Cory Fields) 52cbce2 net: don't import std namespace (Cory Fields)
2016-05-17Add getmempoolancestors RPC callSuhas Daftuar