rpc: document optional fields for getchaintxstats result #21311

pull theStack wants to merge 1 commits into bitcoin:master from theStack:2021-rpc-document_optional_getchaintxstats_fields changing 1 files +3 −3
  1. theStack commented at 7:41 PM on February 27, 2021: member

    This mini-PR updates the result help of the getchaintxstats RPC by showing the following fields as "optional":

    • window_tx_count
    • window_interval
    • txrate

    Help output diff between master and PR branch:

    16,18c16,18
    <   "window_tx_count" : n,                (numeric) The number of transactions in the window. Only returned if "window_block_count" is > 0
    <   "window_interval" : n,                (numeric) The elapsed time in the window in seconds. Only returned if "window_block_count" is > 0
    <   "txrate" : n                          (numeric) The average rate of transactions per second in the window. Only returned if "window_interval" is > 0
    ---
    >   "window_tx_count" : n,                (numeric, optional) The number of transactions in the window. Only returned if "window_block_count" is > 0
    >   "window_interval" : n,                (numeric, optional) The elapsed time in the window in seconds. Only returned if "window_block_count" is > 0
    >   "txrate" : n                          (numeric, optional) The average rate of transactions per second in the window. Only returned if "window_interval" is > 0
    
  2. rpc: document optional fields for getchaintxstats result 73e1f7d754
  3. DrahtBot added the label RPC/REST/ZMQ on Feb 27, 2021
  4. 0xB10C approved
  5. 0xB10C commented at 8:14 AM on March 4, 2021: member

    ACK 73e1f7d754c0a2381254447d692fe27a5af8c1c5

  6. luke-jr approved
  7. luke-jr commented at 5:58 PM on March 9, 2021: member

    utACK

  8. fanquake merged this on Apr 1, 2021
  9. fanquake closed this on Apr 1, 2021

  10. sidhujag referenced this in commit ac7b886d56 on Apr 1, 2021
  11. theStack deleted the branch on Jul 31, 2021
  12. PastaPastaPasta referenced this in commit d5d15e79e0 on Jun 19, 2022
  13. PastaPastaPasta referenced this in commit ebdb325aa5 on Jun 19, 2022
  14. PastaPastaPasta referenced this in commit 46cc6423b1 on Jun 27, 2022
  15. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me