Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 10: [PATCH 10/37] fix: harden final Roots assurance

test/functional/mempool_compatibility.py

Before: test/functional/mempool_compatibility.py · After: test/functional/mempool_compatibility.py

File metadata
index 7c72aaae773724a4ea132c14264076307ef40840..a5f7b92ad065cb0ef58d263e3354deee36028770 100755

Download original patch · Release notes

Diff rows 1–15 of 15. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

test/functional/mempool_compatibility.py CHANGED
@@ -22,6 +22,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
22
  def set_test_params(self):
23
  self.num_nodes = 2
24
  self.setup_clean_chain = True
 
25
 
26
  def skip_test_if_missing_module(self):
27
  self.skip_if_no_previous_releases()
@@ -59,7 +60,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
59
  old_node_mempool.rename(new_node_mempool)
60
 
61
  self.log.info("Start new node and verify mempool contains the tx")
62
- self.start_node(1, extra_args=["-persistmempoolv1=1"])
63
  assert old_tx_hash in new_node.getrawmempool()
64
 
65
  self.log.info("Add unbroadcasted tx to mempool on new node and shutdown")
 
22
  def set_test_params(self):
23
  self.num_nodes = 2
24
  self.setup_clean_chain = True
25
+ self.extra_args = [[], ["-permitbarepubkey=1"]]
26
 
27
  def skip_test_if_missing_module(self):
28
  self.skip_if_no_previous_releases()
 
60
  old_node_mempool.rename(new_node_mempool)
61
 
62
  self.log.info("Start new node and verify mempool contains the tx")
63
+ self.start_node(1, extra_args=self.extra_args[1] + ["-persistmempoolv1=1"])
64
  assert old_tx_hash in new_node.getrawmempool()
65
 
66
  self.log.info("Add unbroadcasted tx to mempool on new node and shutdown")