aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6163Wladimir J. van der Laan2015-11-101-2/+2
|\ | | | | | | 87cbdb8 Globals: Explicit Consensus::Params arg for main: (Jorge Timón)
| * Globals: Explicit Consensus::Params arg for main:Jorge Timón2015-10-301-2/+2
| | | | | | | | | | | | | | | | | | -CheckBlockIndex -DisconnectTip -GetTransaction -InvalidateBlock -ProcessGetData -ReadBlockFromDisk
* | Merge pull request #6905Wladimir J. van der Laan2015-11-041-4/+4
|\ \ | |/ |/| | | | | | | | | a6efc01 Bugfix: Omit wallet-related options from -help when wallet is disabled (Luke Dashjr) 5f9260f Bugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also show correct default in getmininginfo (Luke Dashjr) 420a82f Bugfix: Describe dblogsize option correctly (it refers to the wallet database, not memory pool) (Luke Dashjr) caa3d42 Bugfix: RPC: blockchain: Display correct defaults in help for verifychain method (Luke Dashjr)
| * Bugfix: RPC: blockchain: Display correct defaults in help for verifychain methodLuke Dashjr2015-10-011-4/+4
| |
* | Merge pull request #6877Wladimir J. van der Laan2015-10-261-0/+3
|\ \ | | | | | | | | | 10e2eae rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
| * | rpc: Add maxmempool and effective min fee to getmempoolinfoWladimir J. van der Laan2015-10-261-0/+3
| |/
* / Add BIP65 to getblockchaininfo softforks listPeter Todd2015-10-081-0/+1
|/
* [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | similar to secp256k1 include and compile univalue over a subtree
* Track transaction packages in CTxMemPoolEntrySuhas Daftuar2015-09-191-0/+6
| | | | | | | | | | | | | Associate with each CTxMemPoolEntry all the size/fees of descendant mempool transactions. Sort mempool by max(feerate of entry, feerate of descendants). Update statistics on-the-fly as transactions enter or leave the mempool. Also add ancestor and descendant limiting, so that transactions can be rejected if the number or size of unconfirmed ancestors exceeds a target, or if adding a transaction would cause some other mempool entry to have too many (or too large) a set of unconfirmed in- mempool descendants.
* TxMemPool: Change mapTx to a boost::multi_index_containerAshley Holman2015-09-191-3/+2
| | | | | | Indexes on: - Tx Hash - Fee Rate (fee-per-kb)
* Implement REST mempool API, add test and documentation.Pavel Janík2015-08-141-44/+53
|
* Rationalize currency unit to "BTC"Ross Nicoll2015-08-031-2/+3
| | | | | | | | | Previously various user-facing strings have used inconsistent currency units "BTC", "btc" and "bitcoins". This adds a single constant and uses it for each reference to the currency unit. Also adds a description of the unit for --maxtxfee, and adds the missing "amount" field description to the (deprecated) move RPC command.
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+6
|
* Documenting pruned, pruneheight and softforks in getblockchaininfoSimon Males2015-07-191-0/+2
|
* Implement accurate memory accounting for mempoolPieter Wuille2015-07-101-0/+2
|
* [REST] add JSON support for /rest/headers/Jonas Schnelli2015-07-051-2/+0
|
* Merge pull request #6247Wladimir J. van der Laan2015-07-021-0/+82
|\ | | | | | | 076badb Add getblockheader RPC call (Peter Todd)
| * Add getblockheader RPC callPeter Todd2015-06-051-0/+82
| | | | | | | | | | Alternative to getblock that works even when the block itself has been pruned, returning all available information.
* | Show softfork status in getblockchaininfoWladimir J. van der Laan2015-07-011-0/+51
| |
* | rpc: make `gettxoutsettinfo` run lock-freeWladimir J. van der Laan2015-06-161-2/+0
|/ | | | | | | For leveldb "An iterator operates on a snapshot of the database taken when the iterator is created". This means that it is unnecessary to lock out other threads while computing statistics, and neither to hold cs_main for the whole time. Let the thread run free.
* fix missing univalue types during constructingJonas Schnelli2015-06-041-2/+2
|
* Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli2015-06-041-18/+17
| | | | | | - implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
* remove JSON Spirit UniValue wrapperJonas Schnelli2015-06-041-15/+15
|
* expicit set UniValue type to avoid empty valuesJonas Schnelli2015-06-041-13/+13
|
* extend conversion to UniValueJonas Schnelli2015-06-041-2/+2
|
* Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik2015-06-041-5/+11
|
* Consensus: MOVEONLY: Move CValidationState from main consensus/validationjtimon2015-05-151-0/+2
|
* Typo in GetRawMemPool RPC method help: "]" --> "}"Chris Arnesen2015-05-141-1/+1
|
* Merge pull request #6058Wladimir J. van der Laan2015-05-111-0/+12
|\ | | | | | | | | 03c5687 appropriate response when trying to get a block in pruned mode (Jonas Schnelli) 1b2e555 add autoprune information to RPC "getblockchaininfo" (Jonas Schnelli)
| * appropriate response when trying to get a block in pruned modeJonas Schnelli2015-05-111-0/+3
| |
| * add autoprune information to RPC "getblockchaininfo"Jonas Schnelli2015-04-261-0/+9
| |
* | checkpoints: Decouple checkpoints from ParamsCory Fields2015-04-301-1/+1
|/ | | | Pass checkpoint data in as necessary
* Removed main.h dependency from rpcserver.cppEric Lombrozo2015-01-281-0/+19
| | | | | | | | Rebased by @laanwj: - update for RPC methods added since 84d13ee: setmocktime, invalidateblock, reconsiderblock. Only the first, setmocktime, required a change, the other two are thread safe.
* String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-4/+4
| | | | | | | If uint256() constructor takes a string, uint256(0) will become dangerous when uint256 does not take integers anymore (it will go through std::string(const char*) making a NULL string, and the explicit keyword is no help).
* Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-1/+1
| | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* [REST] JSON output: remove block infos from tx details if it is nested in blockJonas Schnelli2014-12-091-1/+1
|
* [REST] /rest/block response with full tx detailsJonas Schnelli2014-12-091-2/+12
| | | | | - rest block request returns full unfolded tx details - /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
* Extra explanation for getchaintipsPieter Wuille2014-12-011-0/+6
|
* Merge pull request #5386Wladimir J. van der Laan2014-12-011-0/+27
|\ | | | | | | 1b91be4 Report status of chain tips (Pieter Wuille)
| * Report status of chain tipsPieter Wuille2014-11-271-0/+27
| |
* | Add 'invalidateblock' and 'reconsiderblock' RPC commands.Pieter Wuille2014-11-261-0/+76
|/ | | | | These can be used for testing reorganizations or for manual intervention in case of chain forks.
* Improve chainstate/blockindex disk writing policyPieter Wuille2014-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | There are 3 pieces of data that are maintained on disk. The actual block and undo data, the block index (which can refer to positions on disk), and the chainstate (which refers to the best block hash). Earlier, there was no guarantee that blocks were written to disk before block index entries referring to them were written. This commit introduces dirty flags for block index data, and delays writing entries until the actual block data is flushed. With this stricter ordering in writes, it is now safe to not always flush after every block, so there is no need for the IsInitialBlockDownload() check there - instead we just write whenever enough time has passed or the cache size grows too large. Also updating the wallet's best known block is delayed until this is done, otherwise the wallet may end up referring to an unknown block. In addition, only do a write inside the block processing loop if necessary (because of cache size exceeded). Otherwise, move the writing to a point after processing is done, after relaying.
* Update comments in src/rpc* to be doxygen compatibleMichael Ford2014-11-201-3/+3
|
* minor cleanup: include orders, end comments etc.Philip Kaufmann2014-10-311-1/+1
| | | | - no code changes
* Merge pull request #5115Wladimir J. van der Laan2014-10-271-0/+1
|\ | | | | | | 33dfbf5 rpc: Fix leveldb iterator leak, and flush before `gettxoutsetinfo` (Wladimir J. van der Laan)
| * rpc: Fix leveldb iterator leak, and flush before `gettxoutsetinfo`Wladimir J. van der Laan2014-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | This fixes an iterator leak resulting in bitcoind: db/version_set.cc:789: leveldb::VersionSet::~VersionSet(): Assertion `dummy_versions_.next_ == &dummy_versions_' failed." exception on shutdown. Also make sure to flush pcoinsTip before calling GetStats() to make sure we apply them to the current height.
* | getblockhash: throw JSONRPCError (not runtime_error)dexX72014-10-241-1/+1
|/
* RPC additions after headers-firstPieter Wuille2014-10-141-0/+2
|
* Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-241-1/+1
|