assert_mempool_contents: assert not duplicates expected

This commit is contained in:
Greg Sanders 2024-11-20 12:57:29 -05:00
parent ea5db2f269
commit 466e4df3fb

View file

@ -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: