mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-05 17:30:59 +02:00
Merge #20737: test: Add missing assignment in mempool_resurrect.py
fada8b019af104a0df7659ede2618f594bb3e78a test: Add missing assignment in mempool_resurrect.py (MarcoFalke) Pull request description: Top commit has no ACKs. Tree-SHA512: f438d85cd14a91eabfc380d9ee120cc7a7f9103cf0cd1cf565f675f386f82d966901c0ad3f60b8c462642fbf0a3791dbbd774f9b07668d22b58eb575c8d702c1
This commit is contained in:
commit
1d7243d307
@ -43,7 +43,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
|||||||
assert_equal(set(node.getrawmempool()), set())
|
assert_equal(set(node.getrawmempool()), set())
|
||||||
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
|
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
|
||||||
# Checks that all spend txns are contained in the mined blocks
|
# 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
|
# Use invalidateblock to re-org back
|
||||||
node.invalidateblock(blocks[0])
|
node.invalidateblock(blocks[0])
|
||||||
@ -52,11 +52,11 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
|||||||
assert_equal(set(node.getrawmempool()), spends_ids)
|
assert_equal(set(node.getrawmempool()), spends_ids)
|
||||||
|
|
||||||
# Generate another block, they should all get mined
|
# Generate another block, they should all get mined
|
||||||
node.generate(1)
|
blocks = node.generate(1)
|
||||||
# mempool should be empty, all txns confirmed
|
# mempool should be empty, all txns confirmed
|
||||||
assert_equal(set(node.getrawmempool()), set())
|
assert_equal(set(node.getrawmempool()), set())
|
||||||
confirmed_txns = set(node.getblock(blocks[0])['tx'] + node.getblock(blocks[1])['tx'])
|
confirmed_txns = set(node.getblock(blocks[0])['tx'])
|
||||||
assert(spends_ids < confirmed_txns)
|
assert spends_ids < confirmed_txns
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user