mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03: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()
|
||||
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…
Add table
Reference in a new issue