Skip to content

Commit 1d7243d

Browse files
author
MarcoFalke
committed
Merge #20737: test: Add missing assignment in mempool_resurrect.py
fada8b0 test: Add missing assignment in mempool_resurrect.py (MarcoFalke) Pull request description: Top commit has no ACKs. Tree-SHA512: f438d85cd14a91eabfc380d9ee120cc7a7f9103cf0cd1cf565f675f386f82d966901c0ad3f60b8c462642fbf0a3791dbbd774f9b07668d22b58eb575c8d702c1
2 parents 1077c93 + fada8b0 commit 1d7243d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/mempool_resurrect.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run_test(self):
4343
assert_equal(set(node.getrawmempool()), set())
4444
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
4545
# Checks that all spend txns are contained in the mined blocks
46-
assert(spends_ids < confirmed_txns)
46+
assert spends_ids < confirmed_txns
4747

4848
# Use invalidateblock to re-org back
4949
node.invalidateblock(blocks[0])
@@ -52,11 +52,11 @@ def run_test(self):
5252
assert_equal(set(node.getrawmempool()), spends_ids)
5353

5454
# Generate another block, they should all get mined
55-
node.generate(1)
55+
blocks = node.generate(1)
5656
# mempool should be empty, all txns confirmed
5757
assert_equal(set(node.getrawmempool()), set())
58-
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
59-
assert(spends_ids < confirmed_txns)
58+
confirmed_txns = set(node.getblock(blocks[0])['tx'])
59+
assert spends_ids < confirmed_txns
6060

6161

6262
if __name__ == '__main__':

0 commit comments

Comments
 (0)