bitcoin/src/rpc
Wladimir J. van der Laan d8fc997913
Merge #16695: rpc: Add window final block height to getchaintxstats
d48c1e837a Add window final block height to getchaintxstats (Jonathan "Duke" Leto)

Pull request description:

  This patch is motivated by the desire to make the output of `getchaintxstats` more useful and optimized for applications to consume and render the data.

  Firstly, this data is already available to the RPC, no additional work is done. Currently additional RPC calls will be needed to look up the height of the final block in the window or the block height that began the window.

  By adding the block height of the final block in the window, the JSON is "self-contained" and applications can calculate the exact block height range of the window with no additional RPC requests.
  For example, a web application which wants to render historical information for `getchaintxstats` RPC on various window sizes might call the RPC with various window lengths, once per day, and store the JSON results somewhere. Because the final block height of each dataset is included, it's no extra work to determine the exact block window range of each JSON response.

ACKs for top commit:
  promag:
    ACK d48c1e837a.

Tree-SHA512: fd4952c125f81a4ad18f7c78498c6b3e265b93cb574832166ac25596321ce84957f971f3f78f37d7e42638dc65f2a5d4d760f289873c9c2f2a82eb00a0f87c3f
2019-08-29 16:41:46 +02:00
..
blockchain.cpp Merge #16695: rpc: Add window final block height to getchaintxstats 2019-08-29 16:41:46 +02:00
blockchain.h rpc: Add lock annotations to block{,header}ToJSON 2019-05-02 14:33:26 -04:00
client.cpp [RPC] add new utxoupdatepsbt arguments to the CRPCCommand and CPRCConvertParam tables 2019-07-04 08:02:23 -04:00
client.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mining.cpp Merge #16060: Bury bip9 deployments 2019-08-15 16:02:10 -04:00
misc.cpp Give more errors for specific failure conditions 2019-08-16 19:34:01 -04:00
net.cpp Replace the use of fWhitelisted by permission checks 2019-08-11 11:33:28 +09:00
protocol.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
rawtransaction.cpp refactor: pcoinsTip -> CChainState::CoinsTip() 2019-08-06 13:13:06 -04:00
rawtransaction_util.cpp [rpc] walletcreatefundedpsbt: use wallet default RBF 2019-07-27 19:24:56 +02:00
rawtransaction_util.h [rpc] walletcreatefundedpsbt: use wallet default RBF 2019-07-27 19:24:56 +02:00
register.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
request.cpp rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
request.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
server.cpp Merge #16240: JSONRPCRequest-aware RPCHelpMan 2019-07-09 19:31:52 -04:00
server.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
util.cpp rpc: Use Join helper in rpc/util 2019-08-20 16:52:33 -04:00
util.h Merge #16227: Refactor CWallet's inheritance chain 2019-07-11 22:42:39 +02:00