rpc: add period_start to version bits statistics #22016

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2021/05/versionbits_period_start changing 2 files +3 −0
  1. Sjors commented at 3:51 PM on May 21, 2021: member

    This PR adds period_start to the softfork statistics.

    This makes it easier to draw green squares.

    Admittedly this is trivial to calculate: $height - ($height mod $period)

  2. fanquake added the label RPC/REST/ZMQ on May 21, 2021
  3. Sjors force-pushed on May 21, 2021
  4. Sjors commented at 4:28 PM on May 21, 2021: member

    Alternatively we could add retarget_period_start to the main getblockchaininfo dictionary.

  5. DrahtBot commented at 3:51 AM on May 22, 2021: member

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #23508 (Add getdeploymentinfo RPC by ajtowns)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. luke-jr commented at 11:50 PM on June 11, 2021: member

    Could also do height - elapsed? At the very least, I think it'd be better to keep it out of BIP9Stats and just do the math in the RPC interface...

  7. Sjors force-pushed on Jun 16, 2021
  8. Sjors commented at 9:46 AM on June 16, 2021: member

    @luke-jr good point, done. It makes the change a lot smaller and limited to RPC code.

  9. luke-jr referenced this in commit 7c2cd06532 on Jun 27, 2021
  10. DrahtBot added the label Needs rebase on Jul 21, 2021
  11. Sjors commented at 8:16 AM on July 21, 2021: member

    Rebased after #21934

  12. Sjors force-pushed on Jul 21, 2021
  13. DrahtBot removed the label Needs rebase on Jul 21, 2021
  14. DrahtBot added the label Needs rebase on Sep 23, 2021
  15. Sjors force-pushed on Sep 23, 2021
  16. DrahtBot removed the label Needs rebase on Sep 23, 2021
  17. luke-jr referenced this in commit d6d1a1b47e on Oct 10, 2021
  18. DrahtBot added the label Needs rebase on Dec 9, 2021
  19. rpc: add period_start to version bits statistics 1898b9be12
  20. Sjors force-pushed on Dec 9, 2021
  21. DrahtBot removed the label Needs rebase on Dec 9, 2021
  22. laanwj commented at 9:22 PM on December 15, 2021: member

    Do we need to reconsider this after #23508?

  23. Sjors commented at 5:34 AM on December 16, 2021: member

    I might just rebase it after that, yes.

  24. DrahtBot added the label Needs rebase on Jan 28, 2022
  25. DrahtBot commented at 8:41 AM on January 28, 2022: member

    <!--cf906140f33d8803c4a75a2196329ecb-->

    🐙 This pull request conflicts with the target branch and needs rebase.

    <sub>Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".</sub>

  26. Sjors commented at 9:13 AM on January 28, 2022: member

    Green squares have already been made trivial with #23508, so closing this.

  27. Sjors closed this on Jan 28, 2022

  28. DrahtBot locked this on Jan 28, 2023

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