Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 8: [PATCH 08/68] ci: restore Roots assurance on Core 30.3 interfaces

test/functional/p2p_orphan_handling.py

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

File metadata
index f2eed48603c0d7e8a9b3d6b4b5dbb8fb1dc304d2..008251b8c074e1a99eee9471f3e20d42f7128579 100755

Download original patch · Release notes

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

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

test/functional/p2p_orphan_handling.py CHANGED
@@ -59,7 +59,7 @@ def cleanup(func):
59
59
  self.wait_until(lambda: len(self.nodes[0].getorphantxs()) == 0)
60
60
  assert_equal(0, len(self.nodes[0].getrawmempool()))
61
61
 
62
- self.restart_node(0, extra_args=["-persistmempool=0"])
62
+ self.restart_node(0, extra_args=self.extra_args[0] + ["-persistmempool=0"])
63
63
  # Allow use of bumpmocktime again
64
64
  self.nodes[0].setmocktime(int(time.time()))
65
65
  self.wallet.rescan_utxos(include_mempool=True)
@@ -122,7 +122,12 @@ class PeerTxRelayer(P2PTxInvStore):
122
122
  class OrphanHandlingTest(BitcoinTestFramework):
123
123
  def set_test_params(self):
124
124
  self.num_nodes = 1
125
- self.extra_args = [[]]
125
+ self.extra_args = [[
126
+ '-permitbaredatacarrier=1', # Native large orphans contain only OP_RETURN.
127
+ '-datacarriersize=100000',
128
+ '-maxscriptsize=100000',
129
+ '-permitbarepubkey=1', # Permit the RAW_P2PK orphan-handling fixtures.
130
+ ]]
126
131
 
127
132
  def create_parent_and_child(self):
128
133
  """Create package with 1 parent and 1 child, normal fees (no cpfp)."""