mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-28 23:08:52 +01:00
test: Fix intermittent issue in mempool_compatibility
This commit is contained in:
@@ -29,7 +29,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
def setup_network(self):
|
def setup_network(self):
|
||||||
self.add_nodes(self.num_nodes, versions=[
|
self.add_nodes(self.num_nodes, versions=[
|
||||||
150200, # oldest version supported by the test framework
|
190100, # oldest version with getmempoolinfo.loaded (used to avoid intermittent issues)
|
||||||
None,
|
None,
|
||||||
])
|
])
|
||||||
self.start_nodes()
|
self.start_nodes()
|
||||||
@@ -72,5 +72,6 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
|||||||
assert old_tx_hash in old_node.getrawmempool()
|
assert old_tx_hash in old_node.getrawmempool()
|
||||||
assert unbroadcasted_tx_hash in old_node.getrawmempool()
|
assert unbroadcasted_tx_hash in old_node.getrawmempool()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
MempoolCompatibilityTest().main()
|
MempoolCompatibilityTest().main()
|
||||||
|
|||||||
Reference in New Issue
Block a user