mempool: persist with XOR

This commit is contained in:
MarcoFalke
2023-08-03 11:48:34 +02:00
parent b3898e946c
commit fa6b053b5c
9 changed files with 49 additions and 15 deletions

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")