v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
test/functional/feature_fee_estimation.py
Before: test/functional/feature_fee_estimation.py · After: test/functional/feature_fee_estimation.py
File metadata
index 24a9baaa2295b1a22453aa59415331d05e0a95a8..c6852dee7733dbcdbe46ff9203c6826144129d1d 100755
Download original patch · Release notes
Diff rows 1–17 of 17. 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/feature_fee_estimation.py
CHANGED
|
@@ -151,6 +151,9 @@ class EstimateFeeTest(BitcoinTestFramework):
|
|
| 151 |
["-blockmaxweight=36000"],
|
| 152 |
]
|
| 153 |
|
|
|
|
|
|
|
|
|
|
| 154 |
def setup_network(self):
|
| 155 |
"""
|
| 156 |
We'll setup the network to have 3 nodes that all mine with different parameters.
|
|
@@ -398,7 +401,7 @@ class EstimateFeeTest(BitcoinTestFramework):
|
|
| 398 |
os.utime(fee_dat, (last_modified_time, last_modified_time))
|
| 399 |
|
| 400 |
# Restart node with -acceptstalefeeestimates option to ensure fee_estimate.dat file is read
|
| 401 |
-
self.start_node(0,extra_args=["-acceptstalefeeestimates"])
|
| 402 |
assert_equal(self.nodes[0].estimatesmartfee(1)["feerate"], fee_rate)
|
| 403 |
|
| 404 |
def clear_estimates(self):
|
|
|
|
| 151 |
["-blockmaxweight=36000"],
|
| 152 |
]
|
| 153 |
|
| 154 |
+
# Preserve the estimator's native low-feerate sampling range explicitly.
|
| 155 |
+
self.extra_args = [args + ["-minrelaytxfee=0.000001"] for args in self.extra_args]
|
| 156 |
+
|
| 157 |
def setup_network(self):
|
| 158 |
"""
|
| 159 |
We'll setup the network to have 3 nodes that all mine with different parameters.
|
|
|
|
| 401 |
os.utime(fee_dat, (last_modified_time, last_modified_time))
|
| 402 |
|
| 403 |
# Restart node with -acceptstalefeeestimates option to ensure fee_estimate.dat file is read
|
| 404 |
+
self.start_node(0,extra_args=self.extra_args[0] + ["-acceptstalefeeestimates"])
|
| 405 |
assert_equal(self.nodes[0].estimatesmartfee(1)["feerate"], fee_rate)
|
| 406 |
|
| 407 |
def clear_estimates(self):
|