test: Deduplicate assert_mempool_contents() #31338

pull hodlinator wants to merge 1 commits into bitcoin:master from hodlinator:2024/11/dedup_assert_mempool_contents changing 1 files +2 −9
  1. hodlinator commented at 11:07 AM on November 21, 2024: contributor

    Recently added mempool_util implementation probably evolved in parallel with the package RBF one before being submitted as part of ephemeral dust in e2e30e89ba4b9bdbcabaf5b4346610922f0728bb (related comments: #30239 (review), #31279#pullrequestreview-2445579323).

  2. functional test: Deduplicate assert_mempool_contents()
    Recently added mempool_util implementation probably evolved in parallel with the package RBF one before being submitted as part of ephemeral dust in e2e30e89ba4b9bdbcabaf5b4346610922f0728bb.
    a0eafc10f9
  3. DrahtBot commented at 11:07 AM on November 21, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK l0rinc, theStack, instagibbs, achow101

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

  4. DrahtBot added the label Tests on Nov 21, 2024
  5. in test/functional/mempool_package_rbf.py:41 in a0eafc10f9
      45 | -            expected = []
      46 | -        mempool = self.nodes[0].getrawmempool(verbose=False)
      47 | -        assert_equal(len(mempool), len(expected))
      48 | -        for tx in expected:
      49 | -            assert tx.rehash() in mempool
      50 | +        mempool_util.assert_mempool_contents(self, self.nodes[0], expected, sync=False)
    


    l0rinc commented at 12:02 PM on November 21, 2024:

    inlining assert_mempool_contents and removing dead code results in the exact same code as before 👍

  6. l0rinc approved
  7. l0rinc commented at 12:02 PM on November 21, 2024: contributor

    ACK a0eafc10f94362408f54195ffd5a9237dc1ef638

  8. theStack approved
  9. theStack commented at 12:50 PM on November 21, 2024: contributor

    ACK a0eafc10f94362408f54195ffd5a9237dc1ef638

    Thanks for following up!

  10. instagibbs commented at 7:29 PM on November 21, 2024: member

    ACK a0eafc10f94362408f54195ffd5a9237dc1ef638

    thanks for opening this

  11. achow101 commented at 11:16 PM on November 21, 2024: member

    ACK a0eafc10f94362408f54195ffd5a9237dc1ef638

  12. achow101 merged this on Nov 22, 2024
  13. achow101 closed this on Nov 22, 2024

  14. hodlinator deleted the branch on Nov 23, 2024
  15. TheCharlatan referenced this in commit bd64a555d7 on Dec 3, 2024
  16. TheCharlatan referenced this in commit 15319cfcd5 on Dec 4, 2024
  17. stickies-v referenced this in commit f6b6da7935 on Dec 18, 2024
  18. stickies-v referenced this in commit 6816a65596 on Dec 18, 2024
  19. stickies-v referenced this in commit de777e8ed6 on Dec 18, 2024
  20. bug-castercv502 referenced this in commit c87bcd9110 on Sep 28, 2025
  21. bitcoin locked this on Nov 23, 2025

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-19 03:13 UTC

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