Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 42: [PATCH 42/68] test: adapt full-suite fixtures to current Roots policy and P2P APIs

test/functional/mempool_updatefromblock.py

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

File metadata
index fdc6b9a34e1820d0b424fad8b554a621398863ac..2386f2cd48af37c87bfbd9108fc92c59a841b98a 100755

Download original patch · Release notes

Diff rows 1–12 of 12. 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_updatefromblock.py CHANGED
@@ -28,7 +28,11 @@ class MempoolUpdateFromBlockTest(BitcoinTestFramework):
28
  def set_test_params(self):
29
  self.num_nodes = 1
30
  # Ancestor and descendant limits depend on transaction_graph_test requirements
31
- self.extra_args = [['-limitdescendantsize=1000', '-limitancestorsize=1000', f'-limitancestorcount={CUSTOM_ANCESTOR_COUNT}', f'-limitdescendantcount={CUSTOM_DESCENDANT_COUNT}']]
 
 
 
 
32
 
33
  def create_empty_fork(self, fork_length):
34
  '''
 
28
  def set_test_params(self):
29
  self.num_nodes = 1
30
  # Ancestor and descendant limits depend on transaction_graph_test requirements
31
+ # The 100-transaction ancestor graph must fit in one cleanup block;
32
+ # this fixture tests reorg accounting rather than the Roots template cap.
33
+ # Large padded parents exercise disconnect-pool byte trimming, not
34
+ # data-carrier or script-size admission policy.
35
+ self.extra_args = [['-blockmaxweight=4000000', '-datacarriersize=1000000', '-maxscriptsize=1000000', '-acceptnonstddatacarrier=1', '-permitbaredatacarrier=1', '-limitdescendantsize=1000', '-limitancestorsize=1000', f'-limitancestorcount={CUSTOM_ANCESTOR_COUNT}', f'-limitdescendantcount={CUSTOM_DESCENDANT_COUNT}']]
36
 
37
  def create_empty_fork(self, fork_length):
38
  '''