rpc: Fix off-by-one error in getblockchaininfo help #34393

pull billymcbip wants to merge 1 commits into bitcoin:master from billymcbip:getblockchaininfo changing 1 files +1 −1
  1. billymcbip commented at 1:46 pm on January 23, 2026: contributor

    Correct the headers field description in getblockchaininfo.

    Analogous to blocks (“the height of the most-work fully-validated chain”), headers reports the height of the best known header chain, not a count.

    I’m open to suggestions regarding the exact wording, I just want to make sure we fix the off-by-one error.

    Sample output:

    0{
    1  "chain": "main",
    2  "blocks": 933527,
    3  "headers": 933527,
    4  ...
    5}
    
  2. rpc: Fix off-by-one error in getblockchaininfo help 76c2a3d799
  3. DrahtBot added the label RPC/REST/ZMQ on Jan 23, 2026
  4. DrahtBot commented at 1:46 pm on January 23, 2026: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34393.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.


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-01-27 06:13 UTC

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