mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 21:39:05 +01:00
mempool: persist with XOR
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user