Skip to content

Commit 466e4df

Browse files
committed
assert_mempool_contents: assert not duplicates expected
1 parent ea5db2f commit 466e4df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/test_framework/mempool_util.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def assert_mempool_contents(test_framework, node, expected=None, sync=True):
3030
test_framework.sync_mempools()
3131
if not expected:
3232
expected = []
33+
assert_equal(len(expected), len(set(expected)))
3334
mempool = node.getrawmempool(verbose=False)
3435
assert_equal(len(mempool), len(expected))
3536
for tx in expected:

0 commit comments

Comments
 (0)