test: Fix intermittent issue in mempool_compatibility

This commit is contained in:
MarcoFalke
2020-11-23 09:27:29 +01:00
parent 831675c8dc
commit fa05d19bd6

View File

@@ -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()