v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
test/functional/mempool_cluster.py
Before: test/functional/mempool_cluster.py · After: test/functional/mempool_cluster.py
File metadata
index 7325028412a2a10f6396abc43296aee08ce2a460..991e636c1e3fe4b7dc6bcc9c020adaa97d263acf 100755
Download original patch · Release notes
Diff rows 1–23 of 23. 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/mempool_cluster.py
CHANGED
|
@@ -42,6 +42,7 @@ def cleanup(func):
|
|
|
42
42
|
class MempoolClusterTest(BitcoinTestFramework):
|
|
43
43
|
def set_test_params(self):
|
|
44
44
|
self.num_nodes = 1
|
|
45
|
+
self.extra_args = [["-minrelaytxfee=0.000001", "-maxscriptsize=1000000", "-datacarriersize=1000000"]]
|
|
45
46
|
|
|
46
47
|
def add_chain_cluster(self, node, cluster_count, target_vsize=None):
|
|
47
48
|
"""Create a cluster of transactions, with the count specified.
|
|
@@ -398,7 +399,7 @@ class MempoolClusterTest(BitcoinTestFramework):
|
|
|
398
399
|
|
|
399
400
|
for cluster_size_limit_kvb in [10, 20, 33, 100, DEFAULT_CLUSTER_SIZE_LIMIT_KVB]:
|
|
400
401
|
self.log.info(f"-> Resetting node with -limitclustersize={cluster_size_limit_kvb}")
|
|
401
|
-
self.restart_node(0, extra_args=[f"-limitclustersize={cluster_size_limit_kvb}"])
|
|
402
|
+
self.restart_node(0, extra_args=self.extra_args[0] + [f"-limitclustersize={cluster_size_limit_kvb}"])
|
|
402
403
|
|
|
403
404
|
cluster_size_limit = cluster_size_limit_kvb * 1000
|
|
404
405
|
self.test_cluster_size_limit(cluster_size_limit)
|
|
@@ -406,7 +407,7 @@ class MempoolClusterTest(BitcoinTestFramework):
|
|
|
406
407
|
|
|
407
408
|
for cluster_count_limit in [4, 10, 16, 32, DEFAULT_CLUSTER_LIMIT]:
|
|
408
409
|
self.log.info(f"-> Resetting node with -limitclustercount={cluster_count_limit}")
|
|
409
|
-
self.restart_node(0, extra_args=[f"-limitclustercount={cluster_count_limit}"])
|
|
410
|
+
self.restart_node(0, extra_args=self.extra_args[0] + [f"-limitclustercount={cluster_count_limit}"])
|
|
410
411
|
|
|
411
412
|
self.test_cluster_count_limit(cluster_count_limit)
|
|
412
413
|
if cluster_count_limit > 10:
|