test: Set regtest.BIP65Height = 111 to speed up tests #21862

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2105-testFasterBip65 changing 6 files +11 −11
  1. MarcoFalke commented at 7:22 AM on May 5, 2021: member

    No need to waste time by forcing creation of more than 1000 blocks to get the benefits of being able to test BIP 65. Also, reducing the height makes it more likely that (third-party) tests are conforming to BIP 65, which is enforced on mainnet for all new blocks.

  2. fanquake added the label Tests on May 5, 2021
  3. MarcoFalke force-pushed on May 5, 2021
  4. MarcoFalke marked this as a draft on May 5, 2021
  5. practicalswift commented at 9:53 AM on May 5, 2021: contributor

    Concept ACK

  6. DrahtBot commented at 3:36 PM on May 5, 2021: contributor

    <!--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:

    • #22788 (scripted-diff: Use generate* from TestFramework by MarcoFalke)
    • #22567 (test: Implicitly sync after generate* to preempt races and intermittent test failures by MarcoFalke)

    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.

  7. theStack commented at 8:52 PM on May 9, 2021: contributor

    Concept ACK

  8. DrahtBot cross-referenced this on Jul 27, 2021 from issue test: improve `test_signing_with_{csv,cltv}` subtests (speed, prevent timeout) by theStack
  9. DrahtBot cross-referenced this on Jul 28, 2021 from issue test: Implicitly sync after generate* to preempt races and intermittent test failures by MarcoFalke
  10. MarcoFalke force-pushed on Aug 5, 2021
  11. DrahtBot cross-referenced this on Aug 5, 2021 from issue test: Set regtest.BIP66Height = 102 to speed up tests by MarcoFalke
  12. MarcoFalke force-pushed on Aug 17, 2021
  13. MarcoFalke force-pushed on Aug 17, 2021
  14. MarcoFalke renamed this:
    test: Set regtest.BIP65Height = 112 to speed up tests
    test: Set regtest.BIP65Height = 111 to speed up tests
    on Aug 17, 2021
  15. Zero-1729 commented at 1:24 PM on August 17, 2021: contributor

    Concept ACK

  16. DrahtBot cross-referenced this on Aug 19, 2021 from issue test: Add generate* calls to test framework by MarcoFalke
  17. MarcoFalke marked this as ready for review on Aug 23, 2021
  18. MarcoFalke force-pushed on Aug 23, 2021
  19. MarcoFalke commented at 11:02 AM on August 23, 2021: member

    Rebased and ready for review

  20. theStack approved
  21. theStack commented at 12:16 PM on August 23, 2021: contributor

    Tested ACK faa5228f7427ed467bb0a6806fc891d61f23c76b ๐Ÿš€

    Good to see that the burden of generating large numbers of blocks is more and more relieved. This enables nice speed-ups for the affected tests (>3x for feature_cltv.py, 2x for rpc_signrawtransaction.py on my machine).

  22. Zero-1729 approved
  23. Zero-1729 commented at 1:33 PM on August 23, 2021: contributor

    tACK faa5228 ๐Ÿงช

    Tested on macOS v11.5.2

    Clean changes, affected tests aren't broken. More importantly, saw the following times on master and this patch respectively:

    Master

    File User System
    test/functional/feature_cltv.py 1.35s 0.36s
    test/functional/rpc_blockchain.py 1.00s 0.31s
    test/functional/rpc_signrawtransaction.py 3.44s 0.68s

    After Patch

    File User System
    test/functional/feature_cltv.py 0.33s 0.11s
    test/functional/rpc_blockchain.py 1.00s 0.31s
    test/functional/rpc_signrawtransaction.py 1.52s 0.41s
  24. DrahtBot added the label Needs rebase on Aug 24, 2021
  25. Set regtest.BIP65Height = 111 to speed up tests faf7e485e9
  26. MarcoFalke force-pushed on Aug 26, 2021
  27. MarcoFalke commented at 9:08 AM on August 26, 2021: member

    Rebased (trivial)

  28. DrahtBot removed the label Needs rebase on Aug 26, 2021
  29. theStack approved
  30. theStack commented at 6:17 PM on August 26, 2021: contributor

    re-ACK faf7e485e901d6c72db5d969b526fa148060a003 ๐Ÿ“

    Checked via git range-diff faa5228f...faf7e485 that changes since my last ACK are only rebase-related.

  31. Zero-1729 approved
  32. Zero-1729 commented at 7:04 PM on August 26, 2021: contributor

    re-ACK faf7e485e901d6c72db5d969b526fa148060a003 ๐Ÿง‹

    LGTM, clean rebase since last review ๐Ÿงผ

  33. kristapsk approved
  34. kristapsk commented at 8:53 PM on August 26, 2021: contributor

    ACK faf7e485e901d6c72db5d969b526fa148060a003

  35. DrahtBot cross-referenced this on Aug 26, 2021 from issue scripted-diff: Use generate* from TestFramework by MarcoFalke
  36. fanquake merged this on Aug 26, 2021
  37. fanquake closed this on Aug 26, 2021

  38. MarcoFalke deleted the branch on Aug 27, 2021
  39. sidhujag referenced this in commit 42c98c4502 on Aug 28, 2021
  40. bitcoin locked this on Aug 27, 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-05-20 06:54 UTC