Skip to content
Bitcoin Roots

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

test/functional/mempool_limit.py

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

File metadata
index 5051f8a0301647eae7e178f34103ca63f09c94ba..e485d7070b9da677866524a132be92fac37856ec 100755

Download original patch · Release notes

Diff rows 1–24 of 24. 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_limit.py CHANGED
@@ -7,6 +7,7 @@
7
7
  from decimal import Decimal
8
8
 
9
9
  from test_framework.mempool_util import (
10
+ DEFAULT_MIN_RELAY_TX_FEE,
10
11
  fill_mempool,
11
12
  )
12
13
  from test_framework.p2p import P2PTxInvStore
@@ -30,6 +31,7 @@ class MempoolLimitTest(BitcoinTestFramework):
30
31
  self.num_nodes = 1
31
32
  self.extra_args = [[
32
33
  "-datacarriersize=100000",
34
+ "-maxscriptsize=100000",
33
35
  "-maxmempool=5",
34
36
  ]]
35
37
  self.supports_cli = False
@@ -185,8 +187,8 @@ class MempoolLimitTest(BitcoinTestFramework):
185
187
  self.restart_node(0, extra_args=self.extra_args[0])
186
188
 
187
189
  # Restarting the node resets mempool minimum feerate
188
- assert_equal(node.getmempoolinfo()['minrelaytxfee'], Decimal('0.00000100'))
189
- assert_equal(node.getmempoolinfo()['mempoolminfee'], Decimal('0.00000100'))
190
+ assert_equal(node.getmempoolinfo()['minrelaytxfee'], Decimal(DEFAULT_MIN_RELAY_TX_FEE) / COIN)
191
+ assert_equal(node.getmempoolinfo()['mempoolminfee'], Decimal(DEFAULT_MIN_RELAY_TX_FEE) / COIN)
190
192
 
191
193
  fill_mempool(self, node)
192
194
  current_info = node.getmempoolinfo()