mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
Merge #14632: Tests: Fix a comment
086fc83571
Tests: Fix a comment (fridokus)
Pull request description:
Fix a comment that was false
Tree-SHA512: 945aa38229545e026e18c3abf53a4fbe6ec36413ce690fff7a1dd89b6e102d2b574524092e0ddf06cace82f3c040c59221b9b942be1203525814d2fbd50aaa0b
This commit is contained in:
commit
6b8d0a2164
@ -47,12 +47,11 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
|||||||
tx = self.nodes[0].gettransaction(txid)
|
tx = self.nodes[0].gettransaction(txid)
|
||||||
assert(tx["confirmations"] > 0)
|
assert(tx["confirmations"] > 0)
|
||||||
|
|
||||||
# Use invalidateblock to re-org back; all transactions should
|
# Use invalidateblock to re-org back
|
||||||
# end up unconfirmed and back in the mempool
|
|
||||||
for node in self.nodes:
|
for node in self.nodes:
|
||||||
node.invalidateblock(blocks[0])
|
node.invalidateblock(blocks[0])
|
||||||
|
|
||||||
# mempool should be empty, all txns confirmed
|
# All txns should be back in mempool with 0 confirmations
|
||||||
assert_equal(set(self.nodes[0].getrawmempool()), set(spends1_id+spends2_id))
|
assert_equal(set(self.nodes[0].getrawmempool()), set(spends1_id+spends2_id))
|
||||||
for txid in spends1_id+spends2_id:
|
for txid in spends1_id+spends2_id:
|
||||||
tx = self.nodes[0].gettransaction(txid)
|
tx = self.nodes[0].gettransaction(txid)
|
||||||
|
Loading…
Reference in New Issue
Block a user