mempool: persist with XOR

This commit is contained in:
MarcoFalke committed 2023-11-09 19:44:50 +01:00
1 parent b3898e946c
commit fa6b053b5c
9 files changed
+49 -15

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
def setup_network(self):
self.add_nodes(self.num_nodes, versions=[
200100, # Last release with previous mempool format
200100, # Last release without unbroadcast serialization and without XOR
None,
])
self.start_nodes()
@@ -59,7 +59,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
old_node_mempool.rename(new_node_mempool)
self.log.info("Start new node and verify mempool contains the tx")
self.start_node(1)
self.start_node(1, extra_args=["-persistmempoolv1=1"])
assert old_tx_hash in new_node.getrawmempool()
self.log.info("Add unbroadcasted tx to mempool on new node and shutdown")