scripted-diff: Use generate* from TestFramework #22788

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2108-testGenDiff changing 117 files +468 −468
  1. MarcoFalke commented at 8:36 AM on August 24, 2021: member

    This is needed for #22567.

    By using the newly added generate* member functions of the test framework, it paves the way to make it easier to implicitly call sync_all after block generation to avoid intermittent issues.

  2. DrahtBot added the label Refactoring on Aug 24, 2021
  3. lsilva01 approved
  4. lsilva01 commented at 12:36 AM on August 25, 2021: contributor
  5. DrahtBot commented at 4:45 AM on August 25, 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:

    • #22674 (validation: mempool validation and submission for packages of 1 child + parents by glozow)
    • #22650 (Remove -deprecatedrpc=addresses flag and corresponding code/logic by mjdietzx)
    • #22509 (test: Use MiniWallet in mempool_accept.py by sriramdvt)
    • #22290 (Package Mempool Submission with Package Fee-Bumping by glozow)
    • #21726 (Improve Indices on pruned nodes via prune blockers by fjahr)
    • #19888 (rpc, test: Improve getblockstats for unspendables by fjahr)
    • #17526 (Add Single Random Draw as an additional coin selection algorithm by achow101)
    • #15129 (rpc: Added ability to remove watch only addresses by benthecarman)

    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. DrahtBot added the label Needs rebase on Aug 27, 2021
  7. MarcoFalke force-pushed on Aug 27, 2021
  8. DrahtBot removed the label Needs rebase on Aug 27, 2021
  9. DrahtBot added the label Needs rebase on Sep 1, 2021
  10. jonatack commented at 6:03 PM on September 1, 2021: member

    I guess I'm the cause of the rebase, will review to move this forward.

  11. scripted-diff: Use generate* from TestFramework
    -BEGIN VERIFY SCRIPT-
     sed --regexp-extended -i \
         's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \
         $(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
    -END VERIFY SCRIPT-
    fa0b916971
  12. MarcoFalke force-pushed on Sep 2, 2021
  13. MarcoFalke commented at 8:35 AM on September 2, 2021: member

    Rebased (trivial, because scripted-diff)

  14. DrahtBot removed the label Needs rebase on Sep 2, 2021
  15. practicalswift commented at 1:56 PM on September 4, 2021: contributor

    Concept ACK

  16. jonatack commented at 3:24 PM on September 4, 2021: member

    ACK fa0b916971e5bc23ad6396831940a2899ca05402

    $ test/lint/commit-script-check.sh f4e12fd..fa0b916
    Running script for: fa0b916971e5bc23ad6396831940a2899ca05402
     sed --regexp-extended -i \
         's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self., /g' \
         $(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
    OK
    

    Maybe update the pull description to s/needed for/the first commit of/ #22567.

  17. MarcoFalke merged this on Sep 9, 2021
  18. MarcoFalke closed this on Sep 9, 2021

  19. MarcoFalke deleted the branch on Sep 9, 2021
  20. sidhujag referenced this in commit 88d6e926bf on Sep 11, 2021
  21. DrahtBot locked this on Oct 30, 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 21:14 UTC

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