aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-21 16:03:30 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-21 16:02:29 +0100
commitfada8b019af104a0df7659ede2618f594bb3e78a (patch)
treeadeaf5f253be495884b90d01ebac2fcd525a00ca /test/functional
parent1077c93a341022f8b1e1b02a1f230c018ccbc9f8 (diff)
test: Add missing assignment in mempool_resurrect.py
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/mempool_resurrect.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/mempool_resurrect.py b/test/functional/mempool_resurrect.py
index 3a0db70f66..bc0c8279a6 100755
--- a/test/functional/mempool_resurrect.py
+++ b/test/functional/mempool_resurrect.py
@@ -43,7 +43,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
assert_equal(set(node.getrawmempool()), set())
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
# Checks that all spend txns are contained in the mined blocks
- assert(spends_ids < confirmed_txns)
+ assert spends_ids < confirmed_txns
# Use invalidateblock to re-org back
node.invalidateblock(blocks[0])
@@ -52,11 +52,11 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
assert_equal(set(node.getrawmempool()), spends_ids)
# Generate another block, they should all get mined
- node.generate(1)
+ blocks = node.generate(1)
# mempool should be empty, all txns confirmed
assert_equal(set(node.getrawmempool()), set())
- confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
- assert(spends_ids < confirmed_txns)
+ confirmed_txns = set(node.getblock(blocks[0])['tx'])
+ assert spends_ids < confirmed_txns
if __name__ == '__main__':