diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-22 11:19:46 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-22 11:08:46 +0200 |
commit | fa5cc3ccfb15d05775ace9c1827b06203ce17116 (patch) | |
tree | 9bcdbc3449c9ee6e783a783fafea3583ceed3d77 | |
parent | a84dade1f9df747bb440bedb474ea629d2d6ff34 (diff) | |
download | bitcoin-fa5cc3ccfb15d05775ace9c1827b06203ce17116.tar.xz |
test: Fix intermittent issue in mempool_reorg
-rwxr-xr-x | test/functional/mempool_reorg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/mempool_reorg.py b/test/functional/mempool_reorg.py index 28ba666dc7..691518ea09 100755 --- a/test/functional/mempool_reorg.py +++ b/test/functional/mempool_reorg.py @@ -68,8 +68,8 @@ class MempoolCoinbaseTest(BitcoinTestFramework): assert_equal(self.nodes[1].getmempoolentry(tx_child["txid"])["ancestorcount"], 2) assert_equal(self.nodes[1].getmempoolentry(tx_before_reorg["txid"])["ancestorcount"], 1) - # peer1 should not have received an inv for any of the transactions during this time, as not - # enough time has elapsed for those transactions to be announced. Likewise, it cannot + # peer1 should not have received an inv for any of the transactions during this time, as no + # mocktime has elapsed for those transactions to be announced. Likewise, it cannot # request very recent, unanounced transactions. assert_equal(len(peer1.get_invs()), 0) # It's too early to request these two transactions @@ -92,7 +92,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework): # However, the node will answer requests for the tx from the recently-disconnected block. assert_equal(peer1.last_message["tx"].tx.getwtxid(),tx_disconnected["tx"].getwtxid()) - self.nodes[1].setmocktime(int(time.time()) + 30) + self.nodes[1].setmocktime(int(time.time()) + 300) peer1.sync_with_ping() # the transactions are now announced assert_equal(len(peer1.get_invs()), 3) |