test: Remove modinv python util helper function #27538

pull fjahr wants to merge 1 commits into bitcoin:master from fjahr:pr27483 changing 3 files +4 −28
  1. fjahr commented at 12:06 PM on April 28, 2023: contributor

    Since #27483 was merged the modinv() body is just one line calling pythons own implementation of pow(). We can just remove the function as it doesn't seem to add any value. Additionally the comment in the function is now outdated and the test is only testing two ways of doing modular inverse but both using python's pow() function.

  2. DrahtBot commented at 12:06 PM on April 28, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK theStack
    Concept ACK sipa, kevkevinpal

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #27507 (lint: stop ignoring LIEF imports by fanquake)

    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.

  3. DrahtBot added the label Tests on Apr 28, 2023
  4. sipa commented at 12:08 PM on April 28, 2023: member

    Concept ACK

  5. in test/functional/test_framework/util.py:1 in 75b8ba524d


    maflcko commented at 12:10 PM on April 28, 2023:
    test/functional/test_framework/util.py:18:1: F401 'unittest' imported but unused
    

    fjahr commented at 12:57 PM on April 28, 2023:

    Thanks, fixed.

  6. DrahtBot added the label CI failed on Apr 28, 2023
  7. test: remove modinv python util helper function dc14ba08e6
  8. fjahr force-pushed on Apr 28, 2023
  9. kevkevinpal commented at 12:49 PM on April 28, 2023: contributor

    Concept ACK also did a grep for modinv in /test and looks like you got all them

  10. DrahtBot removed the label CI failed on Apr 28, 2023
  11. theStack approved
  12. theStack commented at 1:25 PM on April 28, 2023: contributor

    ACK dc14ba08e6e502f3e31d935bcd053a287c6610ca

  13. fanquake merged this on May 1, 2023
  14. fanquake closed this on May 1, 2023

  15. sidhujag referenced this in commit 0c991e686c on May 1, 2023
  16. stratospher referenced this in commit a250d70e85 on Jun 9, 2023
  17. stratospher commented at 6:23 PM on June 9, 2023: contributor

    we'd need to remove util from TEST_FRAMEWORK_MODULES in test_runner too. i've included this in #24005 where anyways TEST_FRAMEWORK_MODULES has to be touched.

  18. stratospher referenced this in commit eeb44ff4cb on Jun 28, 2023
  19. stratospher referenced this in commit afd762afa3 on Jun 29, 2023
  20. stratospher referenced this in commit a31287718a on Jun 29, 2023
  21. kwvg referenced this in commit 84d6bfd4c8 on Feb 14, 2024
  22. kwvg referenced this in commit d954bd45c6 on Feb 14, 2024
  23. kwvg referenced this in commit 239ec619b1 on Feb 14, 2024
  24. kwvg referenced this in commit e4e1f4178a on Feb 15, 2024
  25. PastaPastaPasta referenced this in commit 3960c1bccf on Feb 19, 2024
  26. PastaPastaPasta referenced this in commit 0f0c53aed3 on Feb 19, 2024
  27. bitcoin locked this on Jun 8, 2024

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-17 21:13 UTC

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