aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.h
AgeCommit message (Collapse)Author
2019-05-02rpc: Add lock annotations to block{,header}ToJSONMarcoFalke
2019-02-25rpc: Pass mempool into MempoolToJSONMarcoFalke
2018-09-09rpc: Remove cs_main lock from blockToJSON and blockHeaderToJSONJoão Barbosa
2018-09-03doc: correct GetDifficulty doc after #13288fanquake
2018-08-11Replace median fee rate with feerate percentilesMarcin Jachymiak
Removes medianfeerate result from getblockstats. Adds feerate_percentiles which give the feerate of the 10th, 25th, 50th, 75th, and 90th percentile weight unit in the block.
2018-07-27Update copyright headers to 2018DrahtBot
2018-05-20Drop the chain argument to GetDifficultyBen Woosley
This removes the need to include rpc/blockchain.cpp in order to put GetDifficulty under test. GetDifficulty was called in two ways: * with a guaranteed non-null blockindex * with no argument Change the latter case to be provided chainActive.Tip() explicitly.
2017-06-12Remove unnecessary forward class declarations in header filespracticalswift
2017-03-29refactor: Make rest.cpp dependency on `*toJSON` in `blockchain.cpp` explicitWladimir J. van der Laan
2017-03-27refactor: Move RPCNotifyBlockChange out of `rpc/server.h`Wladimir J. van der Laan
2017-03-27refactor: Move GetDifficulty out of `rpc/server.h`Wladimir J. van der Laan
It has no business in `rpcserver.h`. Define it in the interface header of the implementation unit `rpcblockchain` where it is defined. Also modernize the signature to: double GetDifficulty(const CBlockIndex* blockindex = nullptr); (remove `extern`, replace `NULL` with `nullptr`)