test: Fix intermittent issue in mempool_compatibility

(cherry picked from commit fa05d19bd6)
This commit is contained in:
MarcoFalke 2020-11-23 09:27:29 +01:00 committed by Andrew Poelstra
parent ae8a5a5baa
commit 029b6799d1

View file

@ -29,7 +29,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
def setup_network(self):
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,
])
self.start_nodes()
@ -72,5 +72,6 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
assert old_tx_hash in old_node.getrawmempool()
assert unbroadcasted_tx_hash in old_node.getrawmempool()
if __name__ == "__main__":
MempoolCompatibilityTest().main()