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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/mempool_limit.py
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
from decimal import Decimal
|
| 8 |
|
| 9 |
from test_framework.mempool_util import (
|
|
|
|
| 10 |
fill_mempool,
|
| 11 |
)
|
| 12 |
from test_framework.p2p import P2PTxInvStore
|
|
@@ -30,6 +31,7 @@ class MempoolLimitTest(BitcoinTestFramework):
|
|
| 30 |
self.num_nodes = 1
|
| 31 |
self.extra_args = [[
|
| 32 |
"-datacarriersize=100000",
|
|
|
|
| 33 |
"-maxmempool=5",
|
| 34 |
]]
|
| 35 |
self.supports_cli = False
|
|
@@ -185,8 +187,8 @@ class MempoolLimitTest(BitcoinTestFramework):
|
|
| 185 |
self.restart_node(0, extra_args=self.extra_args[0])
|
| 186 |
|
| 187 |
# 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 |
|
| 191 |
fill_mempool(self, node)
|
| 192 |
current_info = node.getmempoolinfo()
|
|
|
|
| 7 |
from decimal import Decimal
|
| 8 |
|
| 9 |
from test_framework.mempool_util import (
|
| 10 |
+
DEFAULT_MIN_RELAY_TX_FEE,
|
| 11 |
fill_mempool,
|
| 12 |
)
|
| 13 |
from test_framework.p2p import P2PTxInvStore
|
|
|
|
| 31 |
self.num_nodes = 1
|
| 32 |
self.extra_args = [[
|
| 33 |
"-datacarriersize=100000",
|
| 34 |
+
"-maxscriptsize=100000",
|
| 35 |
"-maxmempool=5",
|
| 36 |
]]
|
| 37 |
self.supports_cli = False
|
|
|
|
| 187 |
self.restart_node(0, extra_args=self.extra_args[0])
|
| 188 |
|
| 189 |
# Restarting the node resets mempool minimum feerate
|
| 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)
|
| 192 |
|
| 193 |
fill_mempool(self, node)
|
| 194 |
current_info = node.getmempoolinfo()
|