mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-18 07:50:38 +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()
|
test_framework.sync_mempools()
|
||||||
if not expected:
|
if not expected:
|
||||||
expected = []
|
expected = []
|
||||||
|
assert_equal(len(expected), len(set(expected)))
|
||||||
mempool = node.getrawmempool(verbose=False)
|
mempool = node.getrawmempool(verbose=False)
|
||||||
assert_equal(len(mempool), len(expected))
|
assert_equal(len(mempool), len(expected))
|
||||||
for tx in expected:
|
for tx in expected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user