assert_mempool_contents: assert not duplicates expected
This commit is contained in:
1 parent
ea5db2f269
commit
466e4df3fb
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user