Skip to content

Commit

Permalink
assert_mempool_contents: assert not duplicates expected
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 20, 2024
1 parent ea5db2f commit 466e4df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/test_framework/mempool_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def assert_mempool_contents(test_framework, node, expected=None, sync=True):
test_framework.sync_mempools()
if not expected:
expected = []
assert_equal(len(expected), len(set(expected)))
mempool = node.getrawmempool(verbose=False)
assert_equal(len(mempool), len(expected))
for tx in expected:
Expand Down

0 comments on commit 466e4df

Please sign in to comment.