File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def run_test(self):
43
43
assert_equal (set (node .getrawmempool ()), set ())
44
44
confirmed_txns = set (node .getblock (blocks [0 ])['tx' ] + node .getblock (blocks [1 ])['tx' ])
45
45
# Checks that all spend txns are contained in the mined blocks
46
- assert ( spends_ids < confirmed_txns )
46
+ assert spends_ids < confirmed_txns
47
47
48
48
# Use invalidateblock to re-org back
49
49
node .invalidateblock (blocks [0 ])
@@ -52,11 +52,11 @@ def run_test(self):
52
52
assert_equal (set (node .getrawmempool ()), spends_ids )
53
53
54
54
# Generate another block, they should all get mined
55
- node .generate (1 )
55
+ blocks = node .generate (1 )
56
56
# mempool should be empty, all txns confirmed
57
57
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
60
60
61
61
62
62
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments