mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
assert_mempool_contents: assert not duplicates expected
This commit is contained in:
parent
ea5db2f269
commit
466e4df3fb
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue