v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
test/functional/p2p_orphan_handling.py
Before: test/functional/p2p_orphan_handling.py · After: test/functional/p2p_orphan_handling.py
File metadata
index 4cd59f8ff14bde91f8fb22497129340bdd3bb2b3..aa6b50cd688022525cbe3c5292f0207addf88b70 100755
Download original patch · Release notes
Diff rows 1–20 of 20. 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/p2p_orphan_handling.py
CHANGED
|
@@ -60,7 +60,7 @@ def cleanup(func):
|
|
| 60 |
self.wait_until(lambda: len(self.nodes[0].getorphantxs()) == 0)
|
| 61 |
assert_equal(0, len(self.nodes[0].getrawmempool()))
|
| 62 |
|
| 63 |
-
self.restart_node(0, extra_args=["-persistmempool=0"])
|
| 64 |
# Allow use of bumpmocktime again
|
| 65 |
self.nodes[0].setmocktime(int(time.time()))
|
| 66 |
self.wallet.rescan_utxos(include_mempool=True)
|
|
@@ -123,7 +123,11 @@ class PeerTxRelayer(P2PTxInvStore):
|
|
| 123 |
class OrphanHandlingTest(BitcoinTestFramework):
|
| 124 |
def set_test_params(self):
|
| 125 |
self.num_nodes = 1
|
| 126 |
-
self.extra_args = [[]]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
def create_parent_and_child(self):
|
| 129 |
"""Create package with 1 parent and 1 child, normal fees (no cpfp)."""
|
|
|
|
| 60 |
self.wait_until(lambda: len(self.nodes[0].getorphantxs()) == 0)
|
| 61 |
assert_equal(0, len(self.nodes[0].getrawmempool()))
|
| 62 |
|
| 63 |
+
self.restart_node(0, extra_args=self.extra_args[0] + ["-persistmempool=0"])
|
| 64 |
# Allow use of bumpmocktime again
|
| 65 |
self.nodes[0].setmocktime(int(time.time()))
|
| 66 |
self.wallet.rescan_utxos(include_mempool=True)
|
|
|
|
| 123 |
class OrphanHandlingTest(BitcoinTestFramework):
|
| 124 |
def set_test_params(self):
|
| 125 |
self.num_nodes = 1
|
| 126 |
+
# P2PK and burn-only outputs keep orphan fixtures independent of local output filters.
|
| 127 |
+
self.extra_args = [[
|
| 128 |
+
"-permitbarepubkey=1", "-permitbaredatacarrier=1",
|
| 129 |
+
"-maxscriptsize=1000000", "-datacarriersize=1000000", # Maximal orphan padding.
|
| 130 |
+
]]
|
| 131 |
|
| 132 |
def create_parent_and_child(self):
|
| 133 |
"""Create package with 1 parent and 1 child, normal fees (no cpfp)."""
|