mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-17 23:40:51 +02:00
assert_mempool_contents: assert not duplicates expected
This commit is contained in:
parent
ea5db2f269
commit
466e4df3fb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user